Registry / async / futures-channel

futures-channel

JSON →
library0.3.31rscratesunverified

Provides channels for asynchronous communication using futures-rs.

# Cargo.toml [dependencies] futures-channel = "0.3.31"
INSTALL
IMPORT
SIG · FUTURES-CHANNEL
F
futures-channel
asyncrustv0.3.31
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.

channel
use futures_channel::mpsc::channel;

Creates a simple multi-producer, single-consumer channel and sends/receives a value.

use futures_channel::mpsc::channel; let (mut tx, mut rx) = channel(1); tx.try_send(42).unwrap(); let value = rx.try_next().unwrap().unwrap(); println!("{}", value);
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio or async-std) for blocking operations like recv().
fix
Use an async runtime and await on the receiver.
affects: >=0.3.0
Upgrade
Version history
0.3.31latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
futures-channel — cargo add futures-channel · libregistry