3 releases
0.1.2 | May 21, 2024 |
---|---|
0.1.1 | May 20, 2024 |
0.1.0 | May 20, 2024 |
#585 in Concurrency
76 downloads per month
Used in ticque
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~0.6–1MB
~23K SLoC