Crates.io | wg |
lib.rs | wg |
version | 0.9.2 |
created_at | 2021-10-24 17:26:33.058805+00 |
updated_at | 2024-10-06 20:41:51.935114+00 |
description | Golang like WaitGroup implementation for sync/async Rust. |
homepage | https://github.com/al8n/wg |
repository | https://github.com/al8n/wg.git |
max_upload_size | |
id | 470467 |
size | 86,918 |
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
.
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"] }
Please see examples for details.
crossbeam_utils::WaitGroup
.