Crates.io | wg |
lib.rs | wg |
version | |
source | src |
created_at | 2021-10-24 17:26:33.058805 |
updated_at | 2024-10-06 20:41:51.935114 |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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
.