Registry / async / async-executors

async-executors

JSON →
library0.7.0rscratesunverified

Implements Spawn, SpawnLocal and SpawnHandle for commonly used executors like tokio, async-std, and smol.

# Cargo.toml [dependencies] async_executors = "0.7.0"
INSTALL
IMPORT
SIG · ASYNC-EXECUTORS
A
async-executors
asyncrustv0.7.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.

TokioCtExec
use async_executors::TokioCtExec;

Spawn a task using Tokio current-thread executor

use async_executors::TokioCtExec; use std::future::Future; fn main() { let exec = TokioCtExec::new().unwrap(); exec.spawn(async { println!("Hello from async executor"); }).unwrap(); }
Debug
Known issues
gotchaRequires the corresponding runtime feature flag (e.g., 'tokio' feature for Tokio executors)
fix
Add the appropriate feature to your Cargo.toml, e.g., async_executors = { features = ["tokio"] }
affects: >=0.7.0
Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
34
OpenAI (training)
1
Resources
async-executors — cargo add async-executors · libregistry