AwaitExtensions.TaskSchedulerAwaiter Struct

Definition

An awaiter returned from GetAwaiter(TaskScheduler).

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

Constructors

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 task scheduler.

UnsafeOnCompleted(Action)

Schedules a continuation to execute using the specified task scheduler without capturing the ExecutionContext.

Applies to

Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022

Thread Safety

This type is thread-safe for all members.