Crates.io | onetime |
lib.rs | onetime |
version | 0.1.2 |
source | src |
created_at | 2024-05-20 14:25:18.541196 |
updated_at | 2024-05-21 10:42:31.308385 |
description | Onetime (aka. oneshot) async spsc channel |
homepage | |
repository | https://github.com/limpix31/onetime |
max_upload_size | |
id | 1245770 |
size | 22,941 |
An async onetime (aka. oneshot) channel, where you can send only one message over that channel.
let (s, r) = onetime::channel();
s.send("ok")?;
let value = r.recv().await?;
Licensed under either of
at your option.