The
methods
of System.Threading.SemaphoreSlim are listed below. For a list of all members, see the SemaphoreSlim Members list.
See Also: Inherited members from System.Object
Public Methods
| Dispose()
Releases all resources used by the current instance of the System.Threading.SemaphoreSlim class.
|
| Release() : int
Exits the System.Threading.SemaphoreSlim once.
|
| Release(int) : int
Exits the System.Threading.SemaphoreSlim a specified number of times.
|
| Wait()
Blocks the current thread until it can enter the System.Threading.SemaphoreSlim.
|
| Wait(int) : bool
Blocks the current thread until it can enter the System.Threading.SemaphoreSlim, using a 32-bit signed integer that specifies the timeout.
|
| Wait(CancellationToken)
Blocks the current thread until it can enter the System.Threading.SemaphoreSlim, while observing a System.Threading.CancellationToken.
|
| Wait(TimeSpan) : bool
Blocks the current thread until it can enter the System.Threading.SemaphoreSlim, using a TimeSpan to specify the timeout.
|
| Wait(int, CancellationToken) : bool
Blocks the current thread until it can enter the System.Threading.SemaphoreSlim, using a 32-bit signed integer that specifies the timeout, while observing a System.Threading.CancellationToken.
|
| Wait(TimeSpan, CancellationToken) : bool
Blocks the current thread until it can enter the System.Threading.SemaphoreSlim, using a TimeSpan that specifies the timeout, while observing a System.Threading.CancellationToken.
|
| WaitAsync() : System.Threading.Tasks.Task
Asynchronously waits to enter the System.Threading.SemaphoreSlim.
|
| WaitAsync(int) : System.Threading.Tasks.Task<bool>
Asynchronously waits to enter the System.Threading.SemaphoreSlim, using a 32-bit signed integer to measure the time interval.
|
| WaitAsync(CancellationToken) : System.Threading.Tasks.Task
Asynchronously waits to enter the System.Threading.SemaphoreSlim, while observing a System.Threading.CancellationToken.
|
| WaitAsync(TimeSpan) : System.Threading.Tasks.Task<bool>
Asynchronously waits to enter the System.Threading.SemaphoreSlim, using a TimeSpan to measure the time interval.
|
| WaitAsync(int, CancellationToken) : System.Threading.Tasks.Task<bool>
Asynchronously waits to enter the System.Threading.SemaphoreSlim, using a 32-bit signed integer to measure the time interval, while observing a System.Threading.CancellationToken.
|
| WaitAsync(TimeSpan, CancellationToken) : System.Threading.Tasks.Task<bool>
Asynchronously waits to enter the System.Threading.SemaphoreSlim, using a TimeSpan to measure the time interval, while observing a System.Threading.CancellationToken.
|
Protected Methods