zephyr::sync::channel

Function unbounded_from

source
pub fn unbounded_from<T>(queue: Queue) -> (Sender<T>, Receiver<T>)
Expand description

Create a multi-producer multi-consumer channel of unbounded capacity, using an existing Queue object.

The messages are allocated individually as “Box”, and the queue is managed by the underlying Zephyr queue.