Skip to content

An asyncronous runtime for a single-threaded no_std environment

License

Notifications You must be signed in to change notification settings

sammhicks/nostd_async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An asyncronous runtime for a single-threaded no_std environment

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages