Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Pumps continuations until the owned operation completes, then restores the previous context.

API: engine
Project: Inno.Core.Execution

public static TResult Inno.Core.Execution.OwnerThreadExecution.Run<TResult>(System.Func<System.Threading.Tasks.Task<TResult>> operation)

Type parameter TResult: The result produced by the operation.

Parameter operation: Work that owns and retires every task it starts before returning. Async void work is not supported.

The completed operation result. Operation failures and cancellation propagate unchanged.

Exception T:System.ArgumentNullException: The operation is null.

Exception T:System.InvalidOperationException: The operation returned a null task.

This is a blocking host boundary. Callback-driven hosts use their platform synchronization context instead. Work that explicitly suppresses context capture is responsible for returning to the owner before accessing thread-affine resources.