Registry / async / tokio-executor

tokio-executor

JSON →
library0.1.10rscratesunverified

Future execution primitives.

# Cargo.toml [dependencies] tokio-executor = "0.1.10"
INSTALL
IMPORT
SIG · TOKIO-EXECUTOR
T
tokio-executor
asyncrustv0.1.10
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 tokio_executor::Executor;

Spawn and run futures on a current-thread executor.

use tokio_executor::Executor; use futures::future::lazy; fn main() { let mut executor = tokio_executor::current_thread::CurrentThread::new(); executor.spawn(lazy(|| { println!("Hello from executor"); Ok(()) })); executor.run().unwrap(); }
Debug
Known issues
breakingThis crate is part of Tokio 0.1 and is deprecated in favor of `tokio::runtime` in Tokio 0.2+.
fix
Use `tokio::runtime::Runtime` or `tokio::task` instead.
affects: >=0.2.0
Upgrade
Version history
0.1.10latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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