[−][src]Crate catty
Send a value and asynchronously wait for it.
Example
let (tx, rx) = catty::oneshot(); tx.send("Hello!"); assert_eq!(rx.await, Ok("Hello!"));
Structs
Disconnected | The sender side has disconnected. |
Receiver | The receiver side of a oneshot channel, created with |
Sender | The sender side of a oneshot channel, created with |
Functions
oneshot | Creates a oneshot channel. A value can be sent into this channel and then be asynchronously waited for. |