Struct AwaitableResult<T>.Awaiter
Represents the awaiter that suspends exception.
Inherited Members
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.dll
Syntax
public readonly struct AwaitableResult<T>.Awaiter : ICriticalNotifyCompletion, INotifyCompletion
Properties
| Edit this page View SourceIsCompleted
Gets a value indicating that AwaitableResult<T> has completed.
Declaration
public bool IsCompleted { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceGetResult()
Obtains a result of asynchronous operation, and suspends exception if needed.
Declaration
public Result<T> GetResult()
Returns
Type | Description |
---|---|
Result<T> |
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
Declaration
public void OnCompleted(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |
UnsafeOnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
Declaration
public void UnsafeOnCompleted(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | The |