C# Class WinRTXamlToolkit.Async.AsyncCountdownEvent

Represents a synchronization primitive that is signaled when its count reaches zero.
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method 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 method

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

Signal() public method

Registers a signal, decrementing the current count.
public Signal ( ) : void
return void

SignalAndWait() public method

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

WaitAsync() public method

Waits for the countdown completion signal.
public WaitAsync ( ) : Task
return Task