Async executor
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-01 21:49:21 +02:00
benches Update criterion requirement from 0.5 to 0.6 (#142) 2025-07-26 15:27:16 +09:00
examples Fix clippy::uninlined_format_args warning 2025-07-06 17:29:30 +09:00
src chore: sync dependencies (monorepo) 2026-03-30 09:26:22 +02:00
tests Ignore poisoning of active 2024-12-02 19:14:01 -08:00
.gitignore Initial commit 2020-07-23 12:08:20 +02:00
Cargo.toml fix: also use git for dev-deps to match regular deps 2026-06-01 21:49:21 +02:00
LICENSE-APACHE Initial commit 2020-07-23 12:08:20 +02:00
LICENSE-MIT Initial commit 2020-07-23 12:08:20 +02:00
README.md Fix build badge 2024-09-18 15:14:09 +08:00

async-executor

Build License Cargo Documentation

Async executors.

This crate provides two reference executors that trade performance for functionality. They should be considered reference executors that are "good enough" for most use cases. For more specialized use cases, consider writing your own executor on top of async-task.

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.