3 releases

0.1.2 May 21, 2024
0.1.1 May 20, 2024
0.1.0 May 20, 2024

#585 in Concurrency

Download history 17/week @ 2024-09-23

76 downloads per month
Used in ticque

Apache-2.0 OR MIT

10KB
258 lines

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.

Dependencies

~0.6–1MB
~23K SLoC