executor 0.0.2

A minimalistic async/await executor for web assembly

Executor: Async-Await in Web Assembly

[dependencies]
executor = "0.0.2"

Features

  • handle single spawn
  • handle basic futures
  • handle multi-entrant futures
  • handle more than one spawn

Example

use executor::Executor;

pub fn main() -> () {
    Executor::spawn(async {
        say_num(1);
        sleep(1000).await;
        say_num(2);
        sleep(1000).await;
        say_num(3);
    });
}

License

This project is licensed under either of

at your option.

Contribution

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