C# Класс WinRTXamlToolkit.Async.AsyncAutoResetEvent

Notifies one or more waiting awaiters that an event has occurred
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AsyncAutoResetEvent() публичный Метод

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.
Результат System.Collections.Generic

Reset() публичный Метод

Sets the state of the event to nonsignaled, causing task returned by the next WaitAsync call to block.
public Reset ( ) : void
Результат void

Set() публичный Метод

Sets the state of the event to signaled, allowing one or more waiting threads to proceed.
public Set ( ) : void
Результат void

WaitAsync() публичный Метод

Blocks the current task until the current AsyncAutoResetEvent receives a signal.
public WaitAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task