This feature allows for dispose of your dependency to return a promise.
Calling dispose on its injector will await this promise.
This, in turn, makes myInjector.dispose asynchronous and you should await it.
BREAKING CHANGE: Dependencies are now disposed of asynchronously (while still honoring the order of "child first"). You should now await the result of injector.dispose().
This feature allows for
dispose
of your dependency to return a promise. Callingdispose
on its injector will await this promise. This, in turn, makesmyInjector.dispose
asynchronous and you should await it.BREAKING CHANGE: Dependencies are now disposed of asynchronously (while still honoring the order of "child first"). You should now
await
the result ofinjector.dispose()
.