Registry / async / postage

postage

JSON →
library0.5.0rscratesunverified

An async channel library.

# Cargo.toml [dependencies] postage = "0.5.0"
INSTALL
IMPORT
SIG · POSTAGE
P
postage
asyncrustv0.5.0
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 postage::mpsc::channel;

Creates an MPSC channel, sends a value, and receives it.

use postage::mpsc::channel; #[tokio::main] async fn main() { let (mut tx, mut rx) = channel(10); tx.send(42).await.unwrap(); let val = rx.recv().await.unwrap(); println!("{}", val); }
Debug
Known issues
gotchaRequires an async runtime like tokio or async-std.
fix
Add tokio = { version = "1", features = ["full"] } and use #[tokio::main].
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
Amazon
1
Resources
postage — cargo add postage · libregistry