C# Class WinRTXamlToolkit.Async.AsyncAutoResetEvent

Notifies one or more waiting awaiters that an event has occurred
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit

Public Methods

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

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.
return System.Collections.Generic

Reset() public method

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

Set() public method

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

WaitAsync() public method

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