Udostępnij za pośrednictwem


AwaitExtensions.ConfiguredTaskYieldAwaiter Struct

Definition

An awaiter that will always lead the calling async method to yield, then immediately resume, possibly on the original SynchronizationContext.

public: value class AwaitExtensions::ConfiguredTaskYieldAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
public struct AwaitExtensions.ConfiguredTaskYieldAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct AwaitExtensions.ConfiguredTaskYieldAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
type AwaitExtensions.ConfiguredTaskYieldAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
[<System.Runtime.CompilerServices.IsReadOnly>]
type AwaitExtensions.ConfiguredTaskYieldAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure AwaitExtensions.ConfiguredTaskYieldAwaiter
Implements ICriticalNotifyCompletion
Inheritance
AwaitExtensions.ConfiguredTaskYieldAwaiter
Attributes
Implements

Constructors

AwaitExtensions.ConfiguredTaskYieldAwaiter(Boolean)

Initializes a new instance of the AwaitExtensions.ConfiguredTaskYieldAwaiter struct.

Properties

IsCompleted

Gets a value indicating whether the caller should yield.

Methods

GetResult()

Does nothing.

OnCompleted(Action)

Schedules a continuation to execute immediately (but not synchronously).

UnsafeOnCompleted(Action)

Schedules a delegate for execution at the conclusion of a task's execution without capturing the ExecutionContext.

Applies to