C# Class WinRTXamlToolkit.Async.AsyncCountdownEvent

Represents a synchronization primitive that is signaled when its count reaches zero.
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit

Méthodes publiques

Méthode Description
AsyncCountdownEvent ( int initialCount ) : System

Initializes a new instance of the AsyncCountdownEvent class.

Signal ( ) : void

Registers a signal, decrementing the current count.

SignalAndWait ( ) : Task

Registers a signal, then waits for countdown completion.

WaitAsync ( ) : Task

Waits for the countdown completion signal.

Method Details

AsyncCountdownEvent() public méthode

Initializes a new instance of the AsyncCountdownEvent class.
initialCount
public AsyncCountdownEvent ( int initialCount ) : System
initialCount int The initial count.
Résultat System

Signal() public méthode

Registers a signal, decrementing the current count.
public Signal ( ) : void
Résultat void

SignalAndWait() public méthode

Registers a signal, then waits for countdown completion.
public SignalAndWait ( ) : Task
Résultat Task

WaitAsync() public méthode

Waits for the countdown completion signal.
public WaitAsync ( ) : Task
Résultat Task