Registry / async / futures-executor-preview

futures-executor-preview

JSON →
library0.2.2rscratesunverified

Provides executors for running asynchronous tasks based on the futures-rs library.

# Cargo.toml [dependencies] futures-executor-preview = "0.2.2"
INSTALL
IMPORT
SIG · FUTURES-EXECUTOR-P
F
futures-executor-preview
asyncrustv0.2.2
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.

block_on
use futures_executor::block_on;

Runs an async function synchronously using block_on.

use futures_executor::block_on; async fn hello() -> String { "Hello, world!".to_string() } fn main() { let result = block_on(hello()); println!("{}", result); }
Debug
Known issues
breakingThis crate is a preview and may be unstable; prefer the stable futures-executor crate.
fix
Replace with futures-executor from the futures crate.
affects: >=0.1.0
Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Resources
futures-executor-preview — cargo add futures-executor-preview · libregistry