#async-channel #oneshot #future

no-std onetime

Onetime (aka. oneshot) async spsc channel

3 releases

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

#2605 in Asynchronous

Download history 1/week @ 2025-10-22

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
~18K SLoC