.NET Framework Class Library |
SemaphoreSlim..::.Wait Method |
SemaphoreSlim Class See Also Send Feedback |
Blocks the current thread until it can enter the SemaphoreSlim.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub Wait |
C# |
---|
public void Wait() |
Exceptions
Exception | Condition |
---|---|
System..::.ObjectDisposedException | The current instance has already been disposed. |