Struct ScopedTaskSchedulerAwaitable
Represents an awaitable object that switches the asynchronous method to the specified task scheduler, and returns the scope that switches the method back.
Inherited Members
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Threading.dll
Syntax
public readonly struct ScopedTaskSchedulerAwaitable
Methods
View SourceGetAwaiter()
Gets the awaiter of this object.
Declaration
public ScopedTaskSchedulerAwaitable.Awaiter GetAwaiter()
Returns
| Type | Description |
|---|---|
| ScopedTaskSchedulerAwaitable.Awaiter | The awaiter of this object. |
Remarks
The awaiter captures the synchronization context or the scheduler of the caller to be restored by DisposeAsync().