Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Atomically admits and tracks asynchronous work under this owner’s cancellation boundary.

API: engine
Project: Inno.Core.Execution

public System.Threading.Tasks.Task<TResult> Inno.Core.Execution.LifetimeScope.RunAsync<TResult>(System.Func<System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<TResult>> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))

Type parameter TResult: The operation result type.

Parameter operation: The operation, which must observe the supplied token and must not require owner-thread completion.

Parameter cancellationToken: Additional cancellation requested by the caller.

The tracked result, cancellation or operation failure.

Exception T:System.InvalidOperationException: Retirement has begun or work capacity is exhausted; the operation is not invoked.