Method | Description | |
---|---|---|
AsyncSemaphore ( int initialCount ) : System |
Initializes a new instance of the AsyncSemaphore class, reserving some concurrent entries.
|
|
Release ( ) : void |
Exits the semaphore and returns the previous count.
|
|
WaitAsync ( ) : System.Threading.Tasks.Task |
Blocks the current awaiter until the semaphore receives a signal.
|
public AsyncSemaphore ( int initialCount ) : System | ||
initialCount | int | The initial count. |
return | System |
public WaitAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |