3 releases

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

#977 in Concurrency

Download history 17/week @ 2024-12-06 2/week @ 2024-12-13

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.5–1MB
~22K SLoC