pub fn channel_from_iter<T>(
min_capacity: usize,
iter: impl IntoIterator<Item = T>,
) -> Channel<T>Expand description
Returns a new bounded channel with pre-queued items.
The channel’s (total) capacity will be the maximum of minimum_capacity and
the number of items returned by iter.
Its initial available capacity will be the difference between its total
capacity and the number of pre-queued items.