join_me_maybe 0.6.0

an async `join!` macro with `select!`-like features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// This example is mainly intended for `cargo expand --example short`, to have an example of
/// macro-expanded code to look at without a lot of extra noise.
#[tokio::main]
async fn main() {
    inner().await;
}

async fn inner() {
    join_me_maybe::join!(
        async { 1 },
        maybe async { 2 },
        label1: async { 3 },
        label2: maybe async { 4 },
    );
}