DI Bag API / index / DisposerContext
Interface: DisposerContext
Defined in: acquisition-context.ts:17
Why a pushed disposer is running: the factory never returned, or it did and the service disposer — the withDisposal on the value this factory returned — has just run. Ownership a consumer attaches to a transformed value does not count.
See
https://dany-fedorov.github.io/di-bag/guides/tutorial.html#release-partial-acquisition
Properties
reason
ts
readonly reason: 'factory-failed' | 'no-service-disposer' | 'service-disposed' | 'service-disposal-failed';Defined in: acquisition-context.ts:24
'factory-failed': the factory threw, rejected, or was cancelled; no service exists. 'no-service-disposer': the factory returned and no withDisposal owns that value. 'service-disposed': the service disposer ran without throwing. 'service-disposal-failed': the service disposer threw; pushed disposers still run.