Module futures_channel::mpsc::queue
source ยท Expand description
A mostly lock-free multi-producer, single consumer queue for sending messages between asynchronous tasks.
The queue implementation is essentially the same one used for mpsc channels in the standard library.
Note that the current implementation of this queue has a caveat of the pop
method, and see the method for more information about it. Due to this
caveat, this queue may not be appropriate for all use-cases.
Structsยง
- Node ๐
- Queue ๐The multi-producer single-consumer structure. This is not cloneable, but it may be safely shared so long as it is guaranteed that there is only one popper at a time (many pushers are allowed).
Enumsยง
- PopResult ๐A result of the
pop
function.