C# 클래스 WebApplications.Utilities.Threading.AsyncSemaphore

파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

공개 메소드들

메소드 설명
AsyncSemaphore ( int initialCount = 1 ) : System

Initializes a new instance of the AsyncSemaphore class.

Release ( ) : void

Releases any waiters waiting on the semaphore.

비공개 메소드들

메소드 설명
WaitAllAsync ( ) : Task
WaitAllAsync ( CancellationToken token ) : Task
WaitAllInternal ( CancellationToken token, [ semaphores ) : Task
WaitAsync ( CancellationToken token = default(CancellationToken) ) : Task

메소드 상세

AsyncSemaphore() 공개 메소드

Initializes a new instance of the AsyncSemaphore class.
The count is less than one.
public AsyncSemaphore ( int initialCount = 1 ) : System
initialCount int The initial count.
리턴 System

Release() 공개 메소드

Releases any waiters waiting on the semaphore.
public Release ( ) : void
리턴 void