AwaitExtensions.ConfiguredTaskYieldAwaiter Struct

Definition

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

C++
public: value class AwaitExtensions::ConfiguredTaskYieldAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
Inheritance
AwaitExtensions.ConfiguredTaskYieldAwaiter
Attributes
Implements

Constructors

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

Proizvod Verzije
Visual Studio SDK 2017, 2019, 2022