System.Threading.ManualResetEventSlim.Wait Method

Blocks the current thread until the current System.Threading.ManualResetEventSlim receives a signal, while observing a System.Threading.CancellationToken.

Syntax

public void Wait (CancellationToken cancellationToken)

Parameters

cancellationToken
The System.Threading.CancellationToken to observe.

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.

Requirements

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