C# Class WinRTXamlToolkit.Async.AsyncAutoResetEvent

Notifies one or more waiting awaiters that an event has occurred
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit

Méthodes publiques

Méthode Description
AsyncAutoResetEvent ( bool initialState = false ) : System.Collections.Generic

Initializes a new instance of the AsyncAutoResetEvent class, specifying whether the wait handle is initially signaled.

Reset ( ) : void

Sets the state of the event to nonsignaled, causing task returned by the next WaitAsync call to block.

Set ( ) : void

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.

WaitAsync ( ) : System.Threading.Tasks.Task

Blocks the current task until the current AsyncAutoResetEvent receives a signal.

Method Details

AsyncAutoResetEvent() public méthode

Initializes a new instance of the AsyncAutoResetEvent class, specifying whether the wait handle is initially signaled.
public AsyncAutoResetEvent ( bool initialState = false ) : System.Collections.Generic
initialState bool true to set the initial state to signaled; false to set it to nonsignaled.
Résultat System.Collections.Generic

Reset() public méthode

Sets the state of the event to nonsignaled, causing task returned by the next WaitAsync call to block.
public Reset ( ) : void
Résultat void

Set() public méthode

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
public Set ( ) : void
Résultat void

WaitAsync() public méthode

Blocks the current task until the current AsyncAutoResetEvent receives a signal.
public WaitAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task