Blocks the current thread until the System.Threading.CountdownEvent is set, while observing a System.Threading.CancellationToken.
- cancellationToken
- The System.Threading.CancellationToken to observe.
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. If the System.Threading.CancellationToken being observed is canceled during the wait operation, an OperationCanceledException will be thrown.