C# 클래스 WinRTXamlToolkit.Async.AsyncAutoResetEvent

Notifies one or more waiting awaiters that an event has occurred
파일 보기 프로젝트 열기: xyzzer/WinRTXamlToolkit

공개 메소드들

메소드 설명
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