Registry / networking / mpmc
library0.1.6rscratesunverified

Copy-pasted from old Rust stdlib, provides a multi-producer multi-consumer channel.

# Cargo.toml [dependencies] mpmc = "0.1.6"
INSTALL
IMPORT
SIG · MPMC
M
mpmc
networkingrustv0.1.6
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 mpmc::channel;

Creates an MPMC channel and sends/receives a message.

use mpmc::channel; fn main() { let (tx, rx) = channel::<i32>(); tx.send(42).unwrap(); println!("Received: {}", rx.recv().unwrap()); }
Debug
Known issues
gotchaThis is a copy of an old stdlib implementation; may have known bugs or lack features.
fix
Consider using `crossbeam_channel` or `std::sync::mpsc` for production use.
affects: >=0.1.0
Upgrade
Version history
0.1.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Amazon
1
Resources