pub fn main() {
let runtime = nostd_async::Runtime::new();
let mut task = nostd_async::Task::new(async { println!("Hello World") });
let handle = task.spawn(&runtime);
handle.join();
}
Enables Cortex-M Support.
- Disables interrupts when scheduling and descheduling tasks
- Waits for interrupts when there are no tasks remaining