Registry / async / tokio-reactor-trait

tokio-reactor-trait

JSON →
library4.1.1rscratesunverified

reactor-trait implementation for tokio

# Cargo.toml [dependencies] tokio-reactor-trait = "4.1.1"
INSTALL
IMPORT
SIG · TOKIO-REACTOR-TRAI
T
tokio-reactor-trait
asyncrustv4.1.1
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.

TokioReactor
use tokio_reactor_trait::TokioReactor;

Create and run a TokioReactor

use tokio_reactor_trait::TokioReactor; use reactor_trait::Reactor; #[tokio::main] async fn main() { let reactor = TokioReactor::new(); reactor.run().await; }
Debug
Known issues
gotchaRequires tokio runtime to be active
fix
Wrap usage in #[tokio::main] or manually create a runtime
affects: >=4.0.0
Upgrade
Version history
4.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Resources
tokio-reactor-trait — cargo add tokio-reactor-trait · libregistry