6 releases (3 breaking)
0.9.2 | Oct 6, 2024 |
---|---|
0.9.1 | Apr 27, 2024 |
0.8.3 | Apr 20, 2024 |
0.8.1 |
|
0.2.0 |
|
#116 in Asynchronous
6,279 downloads per month
Used in 28 crates
(9 directly)
34KB
368 lines
wg
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
[dependencies] wg = "0.9"
-
future
[dependencies] wg = { version = "0.9", features = ["future"] }
-
no_std
[dependencies] wg = { version = "0.9", default_features = false, features = ["alloc"] }
-
no_std & future
[dependencies] wg = { version = "0.9", default_features = false, features = ["alloc", "future"] }
Examples
Please see examples for details.
Acknowledgements
- Inspired by Golang sync.WaitGroup and
crossbeam_utils::WaitGroup
.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.Dependencies
~0.5–5MB
~20K SLoC