Skip to content

Golang like WaitGroup implementation

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Millione/await-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

await-group

Crates.io License Build Status

Golang like WaitGroup implementation.

Usage

Add this to your Cargo.toml:

[dependencies]
await-group = "0.1"

Example

use await_group::AwaitGroup;

#[tokio::main]
async fn main() {
    let wg = AwaitGroup::new();
    for _ in 0..10 {
        let w = wg.clone();
        tokio::spawn(async move {
            _ = w;
        });
    }
    wg.await;
}

License

Dual-licensed under the MIT license and the Apache License (Version 2.0).

See LICENSE-MIT and LICENSE-APACHE for details.

About

Golang like WaitGroup implementation

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages