Nito.AsyncEx.Interop.WaitHandles
Provides interop utilities for types.
Wraps a with a . When the is signalled, the returned is completed. If the handle is already signalled, this method acts synchronously.
The to observe.
Wraps a with a . If the is signalled, the returned task is completed with a true result. If the observation times out, the returned task is completed with a false result. If the handle is already signalled or the timeout is zero, this method acts synchronously.
The to observe.
The timeout after which the is no longer observed.
Wraps a with a . If the is signalled, the returned task is (successfully) completed. If the observation is cancelled, the returned task is cancelled. If the handle is already signalled or the cancellation token is already cancelled, this method acts synchronously.
The to observe.
The cancellation token that cancels observing the .
Wraps a with a . If the is signalled, the returned task is completed with a true result. If the observation times out, the returned task is completed with a false result. If the observation is cancelled, the returned task is cancelled. If the handle is already signalled, the timeout is zero, or the cancellation token is already cancelled, then this method acts synchronously.
The to observe.
The timeout after which the is no longer observed.
The cancellation token that cancels observing the .