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.
|
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 |
public WaitAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |