Freigeben über


AwaitExtensions.TaskSchedulerAwaiter Struct

Definition

An awaiter returned from GetAwaiter(TaskScheduler).

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

Constructors

AwaitExtensions.TaskSchedulerAwaiter(TaskScheduler, Boolean)

Initializes a new instance of the AwaitExtensions.TaskSchedulerAwaiter 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 task scheduler.

UnsafeOnCompleted(Action)

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

Applies to

Thread Safety

This type is thread-safe for all members.