|
| .NET Framework Class Library |
| CountdownEvent..::.Wait Method |
| CountdownEvent Class See Also Send Feedback |
Blocks the current thread until the CountdownEvent is set.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub Wait |
| C# |
|---|
public void Wait() |
Remarks
The caller of this method blocks indefinitely until the current instance is set. The caller will
return immediately if the event is currently in a set state.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ObjectDisposedException | The current instance has already been disposed. |