struct UnboundedChannel<T> { ... }

An unbounded synchronous queue.

Uses Deque as a growable ring buffer and Mutex and CondVar to provide mutual exclusion and signalling.

Sending a value to the UnboundedChannel will not block (except in the unlikely case of a highly contended mutex).

Example

Fields

Methods

impl UnboundedChannel<T> { ... }

Mixins

impl UnboundedChannel<T> { ... }