AwaitExtensions.TaskSchedulerAwaiter Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.