Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 424 Bytes

readme.md

File metadata and controls

19 lines (13 loc) · 424 Bytes

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.