다음을 통해 공유


AwaitExtensions.SynchronizationContextAwaiter Struct

Definition

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.

Applies to