AsyncBridge
Allows to turn WaitHandle and CancellationToken into task.
public static CancellationTokenFuture WaitAsync(this CancellationToken token, bool completeAsCanceled = false)
Obtains a task that can be used to await token cancellation.
Obtains a task that can be used to await handle completion.
Obtains a task that can be used to await handle completion.