aselect 0.2.0

Opinionated replacement for tokio::select!, avoiding certain pitfalls.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use aselect::aselect;

// Minimal (useless) example
#[tokio::main]
async fn main() {
    aselect!(
        {},
        timer1(
            {
            },
            async |_sleep| {
            },
            |_result| {
            }
        ),
    ).await;
}