ato 2.0.3

A very minimal no-std async runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const SPAWNER_SIZE: usize = 4; // Must be a power of two, e.g., 2, 4, 8, 16, etc.

fn main() {
    // create a spawner with the specified size
    let spawner: ato::Spawner<SPAWNER_SIZE> = ato::Spawner::default();

    // create a simple task that prints a message
    ato::spawn_task!(spawner, res, {
        println!("Hello, World!");
    });
    res.unwrap();

    // run until all tasks are done running
    spawner.run_until_all_done().unwrap();
}