Struct SchedulingContextAwaitable.Awaiter
Represents the awaiter that resumes the asynchronous method on the captured synchronization context or task scheduler.
Inherited Members
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Threading.dll
Syntax
public readonly struct SchedulingContextAwaitable.Awaiter : ICriticalNotifyCompletion, INotifyCompletion
Properties
View SourceIsCompleted
Gets a value indicating that the caller is already running in the captured context, so the switch is not needed.
Declaration
public bool IsCompleted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceGetResult()
Ends the switch.
Declaration
public void GetResult()
OnCompleted(Action)
Declaration
public void OnCompleted(Action continuation)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | continuation |
UnsafeOnCompleted(Action)
Declaration
public void UnsafeOnCompleted(Action continuation)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | continuation |