Partager via


AsyncManualResetEvent.WaitAsync Method

Definition

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()

Returns a task that will be completed when this event is set.

public:
 System::Threading::Tasks::Task ^ WaitAsync();
public System.Threading.Tasks.Task WaitAsync ();
member this.WaitAsync : unit -> System.Threading.Tasks.Task
Public Function WaitAsync () As Task

Returns

Returns Task.

Applies to

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.

Applies to