AsyncAutoResetEvent.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 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.