executor 0.0.6

A minimalistic async/await executor for web assembly
Documentation

Executor: Async-Await in Web Assembly

[dependencies]
executor = "0.0.5"

Example

use executor::Executor;

pub fn main() -> () {
    Executor::spawn(async {
        console_log("Hello");
        window_set_timeout(1000).await;
        console_log("World");
        window_set_timeout(1000).await;
        console_log("!");
    });
}

Features

  • #![no_std]
  • handle more than one spawn to parallelize work
  • simple enough to learn from!

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in executor by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.