共用方式為


AsyncCountdownEvent Class

Definition

An asynchronous style countdown event.

public ref class AsyncCountdownEvent
[Windows::Foundation::Metadata::WebHostHidden]
class AsyncCountdownEvent
public class AsyncCountdownEvent
type AsyncCountdownEvent = class
Public 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

Thread Safety

This type is thread-safe for all members.