C# Class Microsoft.Common.Core.Threading.AsyncManualResetEvent

Async version of the ManualResetEvent
Mostra file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
AsyncManualResetEvent ( bool isSet = false ) : System.Threading
Reset ( ) : void
Set ( ) : void
WaitAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task

Private Methods

Method Description
CancelTcs ( object obj ) : void
WaitContinuation ( Task task, object state ) : void

Method Details

AsyncManualResetEvent() public method

public AsyncManualResetEvent ( bool isSet = false ) : System.Threading
isSet bool
return System.Threading

Reset() public method

public Reset ( ) : void
return void

Set() public method

public Set ( ) : void
return void

WaitAsync() public method

public WaitAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
return Task