taskwait
Runtime agnostic way of waiting for async tasks.
Features
- Done: Support for golang's
WaitGroup.Add
&WaitGroup.Done
- Done: Support for RAII based
done()
ing the task i.e. callingdone()
on drop. - Done: Mixing of both
add
,done
and RAII semantics. - Done: Reuse the same taskgroup for multiple checkpoints.
Example
Using add & done
use TaskGroup;
let tg = ;
for _ in 0..10
tg.wait.await;
Using add & add_work
use TaskGroup;
let tg = ;
for _ in 0..10
tg.wait.await;