[][src]Crate nostd_async

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

Structs

JoinHandle

A joinable handle for a task.

Runtime

The asyncronous runtime.

Task

An asyncronous task