次の方法で共有


AsyncAutoResetEvent.WaitAsync Method

Definition

Overloads

WaitAsync()

Returns an awaitable that may be used to asynchronously acquire the next signal.

WaitAsync(CancellationToken)

Returns an awaitable that may be used to asynchronously acquire the next signal.

WaitAsync()

Returns an awaitable that may be used to asynchronously acquire the next signal.

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

An awaitable.

Applies to

WaitAsync(CancellationToken)

Returns an awaitable that may be used to asynchronously acquire the next signal.

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 token whose cancellation removes the caller from the queue of those waiting for the event.

Returns

An awaitable.

Applies to