Crate nostd_async

source ·
Expand description

Example

let runtime = nostd_async::Runtime::new();

let mut task = nostd_async::Task::new(async {
    println!("Hello World");
    42
});

let handle = task.spawn(&runtime);

assert_eq!(handle.join(), 42);

See more examples in the examples directory

Modules

Structs