Struct DispatcherPriorityAwaiter
A simple awaiter type that will queue the continuation to a dispatcher at a specific priority.
public struct DispatcherPriorityAwaiter : INotifyCompletion
- Implements
Remarks
This is returned from DispatcherPriorityAwaitable.GetAwaiter()
Properties
- IsCompleted
This awaiter is just a proxy for queuing the continuations, it never completes itself.
Methods
- GetResult()
This awaiter is just a proxy for queuing the continuations, it never completes itself, so it doesn't have any result.
- OnCompleted(Action)
This is called with the continuation, which is simply queued to the Dispatcher at the priority specified to the constructor.