Renci.SshNet.Common.CountdownEvent.Wait C# (CSharp) Method

Wait() public method

Blocks the current thread until the CountdownEvent is set, using a TimeSpan to measure the timeout.
The current instance has already been disposed.
public Wait ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan A that represents the number of milliseconds to wait, or a that represents -1 milliseconds to wait indefinitely.
return bool
        public bool Wait(TimeSpan timeout)
        {
            EnsureNotDisposed();

            return _event.WaitOne(timeout);
        }