Wait Method

Task Parallel System.Threading

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

ExceptionCondition
System..::.ObjectDisposedExceptionThe current instance has already been disposed.

See Also