3 releases

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

#2 in #chan


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–1.1MB
~23K SLoC