AsyncCountdownEvent Class

Definition

An asynchronous style countdown event.

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

Constructors

AsyncCountdownEvent(Int32)

Initializes a new instance of the AsyncCountdownEvent class.

Methods

Signal()

Decrements the counter by one.

SignalAndWaitAsync()

Decrements the counter by one and returns an awaitable that executes the continuation when the countdown reaches zero.

WaitAsync()

Returns an awaitable that executes the continuation when the countdown reaches zero.

Applies to

Tuote Versiot
Visual Studio SDK 2015, 2017, 2019, 2022

Thread Safety

This type is thread-safe for all members.