Module thingbuf::mpsc::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§

Functions§

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