SemaphoreSlim.Wait Method

.NET Framework (current version)
 

Blocks the current thread until it can enter the SemaphoreSlim.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodWait()

Blocks the current thread until it can enter the SemaphoreSlim.

System_CAPS_pubmethodWait(CancellationToken)

Blocks the current thread until it can enter the SemaphoreSlim, while observing a CancellationToken.

System_CAPS_pubmethodWait(Int32)

Blocks the current thread until it can enter the SemaphoreSlim, using a 32-bit signed integer that specifies the timeout.

System_CAPS_pubmethodWait(Int32, CancellationToken)

Blocks the current thread until it can enter the SemaphoreSlim, using a 32-bit signed integer that specifies the timeout, while observing a CancellationToken.

System_CAPS_pubmethodWait(TimeSpan)

Blocks the current thread until it can enter the SemaphoreSlim, using a TimeSpan to specify the timeout.

System_CAPS_pubmethodWait(TimeSpan, CancellationToken)

Blocks the current thread until it can enter the SemaphoreSlim, using a TimeSpan that specifies the timeout, while observing a CancellationToken.

Return to top
Show: