ObjectMethodExecutorAwaitable.Awaiter Struct
- Namespace
- Meziantou.Framework
- Assembly
- Meziantou.Framework.ObjectMethodExecutor.dll
- Package
- Meziantou.Framework.ObjectMethodExecutor 2.0.4
- Source
- ObjectMethodExecutorAwaitable.cs
- Available in package assets
- net10.0net11.0
- Declared in
- ObjectMethodExecutorAwaitable
Provides an awaiter that supports the await pattern.
- Implements
Properties
| Name | Description |
|---|
| IsCompleted | Gets a value indicating whether the asynchronous operation has completed. |
Gets a value indicating whether the asynchronous operation has completed.
public bool IsCompleted { get; }
Methods
| Name | Description |
|---|
| GetResult() | Retrieves the result of the asynchronous operation. |
| OnCompleted(Action) | Schedules the continuation action to be invoked when the asynchronous operation completes. |
| UnsafeOnCompleted(Action) | Schedules the continuation action without capturing the execution context. |
Retrieves the result of the asynchronous operation.
Returns
object? The result of the asynchronous operation.
Schedules the continuation action to be invoked when the asynchronous operation completes.
Parameters
continuation Action- The action to invoke when the operation completes.
Schedules the continuation action without capturing the execution context.
public void UnsafeOnCompleted(Action continuation)
Parameters
continuation Action- The action to invoke when the operation completes.