C# Class OSharp.Core.Threading.Tasks.AsyncSemaphore

异步信号量
显示文件 Open project: i66soft/osharp Class Usage Examples

Public Methods

Method Description
AsyncSemaphore ( int initialCount ) : System.Collections.Generic

初始化一个AsyncSemaphore类型的新实例

Release ( ) : void

释放

WaitAsync ( ) : System.Threading.Tasks.Task

等待同步

Method Details

AsyncSemaphore() public method

初始化一个AsyncSemaphore类型的新实例
public AsyncSemaphore ( int initialCount ) : System.Collections.Generic
initialCount int
return System.Collections.Generic

Release() public method

释放
public Release ( ) : void
return void

WaitAsync() public method

等待同步
public WaitAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task