SemaphoreSlim.WaitAsync Method

July 28, 2014

Asynchronously waits to enter the SemaphoreSlim.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method WaitAsync() Asynchronously waits to enter the SemaphoreSlim.
Public method WaitAsync(CancellationToken) Asynchronously waits to enter the SemaphoreSlim, while observing a CancellationToken.
Public method WaitAsync(Int32) Asynchronously waits to enter the SemaphoreSlim, using a 32-bit signed integer to measure the time interval.
Public method WaitAsync(TimeSpan) Asynchronously waits to enter the SemaphoreSlim, using a TimeSpan to measure the time interval.
Public method WaitAsync(Int32, CancellationToken) Asynchronously waits to enter the SemaphoreSlim, using a 32-bit signed integer to measure the time interval, while observing a CancellationToken.
Public method WaitAsync(TimeSpan, CancellationToken) Asynchronously waits to enter the SemaphoreSlim, using a TimeSpan to measure the time interval, while observing a CancellationToken.
Top

Show:
© 2014 Microsoft