Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 541 Bytes

File metadata and controls

13 lines (11 loc) · 541 Bytes

BitSoft.AsyncTools

build

Yet another one threading tools library for .NET.

WaitAsync for WaitHandler

You can use async await for WaitHandler. For example:

using var handler = new AutoResetEvent(initialState: false);
...
await handler.WaitAsync(cancellationToken: cts.Token);

AwaitAsync() is awaiable for ManualResetEvent, AutoResetEvent etc.