You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
John Nunley 6aba704efc
bench: Add benchmarks for lower thread counts (#38)
3 weeks ago
.github Bump MSRV to 1.48 4 weeks ago
benches bench: Add benchmarks for lower thread counts (#38) 3 weeks ago
examples Update futures-lite 3 years ago
src Implement debug output to be better (#33) 3 months ago
tests Fix clippy::redundant_closure warning 1 year ago
.gitignore Initial commit 3 years ago
CHANGELOG.md Release 1.5.0 5 months ago
Cargo.toml Bump MSRV to 1.48 4 weeks ago
LICENSE-APACHE Initial commit 3 years ago
LICENSE-MIT Initial commit 3 years ago
README.md Update license badge to match Cargo.toml 2 years ago

README.md

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.