nostd_async 0.6.1

An asyncronous runtime for a single-threaded no_std environment
Documentation

nostd_async

Example

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();
}

Features

cortex-m

Enables Cortex-M Support.

  • Disables interrupts when scheduling and descheduling tasks
  • Waits for interrupts when there are no tasks remaining

wfe

Uses wfe instead of wfi if there are no pending tasks