AwaitExtensions.SynchronizationContextAwaiter Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An awaiter returned from GetAwaiter(SynchronizationContext).
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct AwaitExtensions.SynchronizationContextAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[<System.Runtime.CompilerServices.IsReadOnly>]
type AwaitExtensions.SynchronizationContextAwaiter = struct
interface ICriticalNotifyCompletion
interface INotifyCompletion
Public Structure AwaitExtensions.SynchronizationContextAwaiter
Implements ICriticalNotifyCompletion
- Inheritance
-
AwaitExtensions.SynchronizationContextAwaiter
- Attributes
- Implements
Constructors
AwaitExtensions.SynchronizationContextAwaiter(SynchronizationContext) |
Initializes a new instance of the AwaitExtensions.SynchronizationContextAwaiter struct. |
Properties
IsCompleted |
Gets a value indicating whether no yield is necessary. |
Methods
GetResult() |
Does nothing. |
OnCompleted(Action) |
Schedules a continuation to execute using the specified SynchronizationContext. |
UnsafeOnCompleted(Action) |
Schedules a continuation to execute using the specified SynchronizationContext without capturing the ExecutionContext. |