CountdownEvent.Wait Method (Int32, CancellationToken)
Assembly: mscorlib (in mscorlib.dll)
public bool Wait( int millisecondsTimeout, CancellationToken cancellationToken )
- Type: System.Int32
The number of milliseconds to wait, or Infinite(-1) to wait indefinitely.
cancellationToken has been canceled.
The current instance has already been disposed. -or- The CancellationTokenSource that created cancellationToken has already been disposed.
millisecondsTimeout is a negative number other than -1, which represents an infinite time-out.