Synced
LifetimeScope.DisposeAsync
Section titled “LifetimeScope.DisposeAsync”
- Cancels and asynchronously drains tracked work before reverse-order release.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Execution
Declaration
Section titled “Declaration”public System.Threading.Tasks.ValueTask Inno.Core.Execution.LifetimeScope.DisposeAsync()Remarks
Section titled “Remarks”Only use asynchronous disposal for thread-neutral resources. Control-thread owners must await their work and call synchronous disposal at their own safe point; this method does not marshal to an owner thread.
Returns
Section titled “Returns”A task that completes only after work and resource retirement finish.
Exceptions
Section titled “Exceptions”Exception T:System.AggregateException: Cancellation, work or resource retirement fails.