AsyncManualResetEvent.WaitAsync Method
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.
Overloads
WaitAsync() |
Returns a task that will be completed when this event is set. |
WaitAsync(CancellationToken) |
Returns a task that will be completed when this event is set. |
WaitAsync()
WaitAsync(CancellationToken)
Returns a task that will be completed when this event is set.
public:
System::Threading::Tasks::Task ^ WaitAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task WaitAsync (System.Threading.CancellationToken cancellationToken);
member this.WaitAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WaitAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
A cancellation token.
Returns
A task that completes when the event is set, or cancels with the cancellationToken
.