AsyncAutoResetEvent Class

Definition

An asynchronous implementation of an AutoResetEvent.

C++/WinRT
[Windows::Foundation::Metadata::WebHostHidden]
class AsyncAutoResetEvent
Inheritance
AsyncAutoResetEvent
Attributes

Constructors

AsyncAutoResetEvent()

Initializes a new instance of the AsyncAutoResetEvent class that does not inline awaiters.

AsyncAutoResetEvent(Boolean)

Initializes a new instance of the AsyncAutoResetEvent class.

Methods

Set()

Unblocks one waiter or sets the signal if no waiters are present so the next waiter may proceed immediately.

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.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022

Thread Safety

This type is thread-safe for all members.