Module jormungandr::utils::async_msg
source · Expand description
Multiple producer, single-consumer in-memory FIFO channels with asynchronous reading.
Structs
- The output end of an in-memory FIFO channel.
- The input end of an in-memory FIFO channel. This can be read asynchronously in a Tokio task using its Stream implementation.
- The error type for
Sender
s used asSink
s. - The error type returned from
try_send
.
Functions
- Constructs an in-memory channel and returns the output and input halves. The parameter specifies the number of messages that are allowed to be pending in the channel.