RetirementBarrier.TryComplete
Section titled “RetirementBarrier.TryComplete”
- Attempts retirement once at an owner-thread safe point.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Execution
Declaration
Section titled “Declaration”public bool Inno.Core.Execution.RetirementBarrier.TryComplete(System.Action retire)Parameters
Section titled “Parameters”Parameter retire: The owner’s retryable retirement operation; the barrier never retains this delegate.
Returns
Section titled “Returns”True after retirement completes, or false while work remains within its deadline.
Remarks
Section titled “Remarks”Wrapped pending failures retain their ownership semantics. A nested timeout is rethrown in its original exception tree. Ordinary sibling failures survive retries and are reported once retirement completes.
Exceptions
Section titled “Exceptions”Exception T:System.AggregateException: Retirement completed after earlier ordinary failures, or the owner reported a wrapped terminal timeout.
Exception T:Inno.Core.Execution.RetirementTimeoutException: Work exceeded its deadline. The barrier remains terminally faulted and dependencies must be retained.
Exception T:System.InvalidOperationException: The caller is not the thread that created this barrier.