C# 클래스 OSharp.Core.Threading.Tasks.AsyncSemaphore

异步信号量
파일 보기 프로젝트 열기: i66soft/osharp 1 사용 예제들

공개 메소드들

메소드 설명
AsyncSemaphore ( int initialCount ) : System.Collections.Generic

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

Release ( ) : void

释放

WaitAsync ( ) : System.Threading.Tasks.Task

等待同步

메소드 상세

AsyncSemaphore() 공개 메소드

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

Release() 공개 메소드

释放
public Release ( ) : void
리턴 void

WaitAsync() 공개 메소드

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