Struct TaskSchedulerAwaitable.Awaiter
Represents the awaiter that switches the asynchronous method to the specified task scheduler.
Inherited Members
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Threading.dll
Syntax
public readonly struct TaskSchedulerAwaitable.Awaiter : ICriticalNotifyCompletion, INotifyCompletion
Properties
View SourceIsCompleted
Gets a value indicating that the caller is already running on the target scheduler, 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 |