Golang like WaitGroup implementation for sync/async Rust, support no_std environment.
Introduction
By default, blocking version WaitGroup is enabled.
If you are using other async runtime, you need to
enbale future feature in your Cargo.toml and use wg::AsyncWaitGroup.
Installation
-
std
[] = "0.9" -
future[] = { = "0.9", = ["future"] } -
no_std
[] = { = "0.9", = false, = ["alloc"] } -
no_std & future
[] = { = "0.9", = false, = ["alloc", "future"] }
Examples
Please see examples for details.
Acknowledgements
- Inspired by Golang sync.WaitGroup and
crossbeam_utils::WaitGroup.