Module blocking

Source
Available on crate feature std only.
Expand description

A synchronous multi-producer, single-consumer channel.

This provides an equivalent API to the mpsc module, but the Receiver types in this module wait by blocking the current thread, rather than asynchronously yielding.

Structs§

Receiver
Synchronously sends values to an associated Receiver.
RecvRef
A reference to a message being received from a blocking channel.
SendRef
A reference to a message being sent to a blocking channel.
Sender
Synchronously receives values from associated Senders.
StaticChannelstatic
A statically-allocated, blocking bounded MPSC channel.
StaticReceiverstatic
Synchronously receives values from associated StaticSenders.
StaticSenderstatic
Synchronously sends values to an associated StaticReceiver.

Functions§

channel
Returns a new synchronous multi-producer, single consumer (MPSC) channel with the provided capacity.
with_recycle
Returns a new synchronous multi-producer, single consumer channel with the provided recycling policy.