onetime

Crates.ioonetime
lib.rsonetime
version0.1.2
sourcesrc
created_at2024-05-20 14:25:18.541196
updated_at2024-05-21 10:42:31.308385
descriptionOnetime (aka. oneshot) async spsc channel
homepage
repositoryhttps://github.com/limpix31/onetime
max_upload_size
id1245770
size22,941
Danil Karpenko (LIMPIX31)

documentation

README

onetime

An async onetime (aka. oneshot) channel, where you can send only one message over that channel.

Examples

let (s, r) = onetime::channel();

s.send("ok")?;
let value = r.recv().await?;

License

Licensed under either of

at your option.

Commit count: 5

cargo fmt