Registry / async / async-executor

async-executor

JSON →
library1.14.0rscratesunverified

Async executor for running futures on a thread pool.

# Cargo.toml [dependencies] async-executor = "1.14.0"
INSTALL
IMPORT
SIG · ASYNC-EXECUTOR
A
async-executor
asyncrustv1.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Executor
use async_executor::Executor;

Creates an async executor and runs a simple future.

use async_executor::Executor; use futures_lite::future; fn main() { let ex = Executor::new(); future::block_on(ex.run(async { println!("Hello from async executor!"); })); }
Debug
Known issues
gotchaRequires an async runtime (e.g., futures_lite or smol) to block on the executor.
fix
Add futures-lite or smol as a dependency and use future::block_on.
affects: all
Upgrade
Version history
1.14.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
OpenAI (training)
1
Resources
async-executor — cargo add async-executor · libregistry