12 releases (7 stable)

1.4.1 Apr 24, 2021
1.4.0 Nov 10, 2020
1.3.0 Sep 20, 2020
0.2.1 Aug 29, 2020
0.1.0 Jul 1, 2019

#34 in Asynchronous

Download history 56783/week @ 2021-04-04 56427/week @ 2021-04-11 57709/week @ 2021-04-18 64470/week @ 2021-04-25 62181/week @ 2021-05-02 65523/week @ 2021-05-09 65277/week @ 2021-05-16 62057/week @ 2021-05-23 65258/week @ 2021-05-30 70502/week @ 2021-06-06 70421/week @ 2021-06-13 74224/week @ 2021-06-20 68415/week @ 2021-06-27 76626/week @ 2021-07-04 77271/week @ 2021-07-11 81383/week @ 2021-07-18

249,096 downloads per month
Used in 1,397 crates (31 directly)

Apache-2.0 OR MIT

27KB
422 lines

async-executor

Build License Cargo Documentation

Async executors.

Examples

use async_executor::Executor;
use futures_lite::future;

// Create a new executor.
let ex = Executor::new();

// Spawn a task.
let task = ex.spawn(async {
    println!("Hello world");
});

// Run the executor until the task completes.
future::block_on(ex.run(task));

License

Licensed under either of

at your option.

Contribution

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

Dependencies

~500KB