Struct EventReceiverAwaiter<T>
public struct EventReceiverAwaiter<T> : INotifyCompletion
Type Parameters
T
- Implements
- Inherited Members
Constructors
EventReceiverAwaiter(TaskAwaiter<T>)
public EventReceiverAwaiter(TaskAwaiter<T> task)
Parameters
task
TaskAwaiter<T>
Properties
IsCompleted
public bool IsCompleted { get; }
Property Value
Methods
GetResult()
public T GetResult()
Returns
- T
OnCompleted(Action)
Schedules the continuation action that's invoked when the instance completes.
public void OnCompleted(Action continuation)
Parameters
continuation
ActionThe action to invoke when the operation completes.
Exceptions
- ArgumentNullException
The
continuation
argument is null (Nothing in Visual Basic).