System.Threading.CountdownEvent.Wait Method

Blocks the current thread until the System.Threading.CountdownEvent is set, using a TimeSpan to measure the timeout, while observing a System.Threading.CancellationToken.

Syntax

public bool Wait (TimeSpan timeout, CancellationToken cancellationToken)

Parameters

timeout
A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely.
cancellationToken
The System.Threading.CancellationToken to observe.

Returns

true if the System.Threading.CountdownEvent was set; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

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