Crate nostd_async
source ·Expand description
§Note
nostd_async is no longer under active development, I suggest using embassy instead, which has a much better async runtime.
§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§
- A joinable handle for a task.
- The asyncronous runtime.
- An asyncronous task