Function tarpc::transport::channel::bounded [−][src]
pub fn bounded<SinkItem, Item>(
capacity: usize
) -> (Channel<SinkItem, Item>, Channel<Item, SinkItem>)
Expand description
Returns two channel peers with buffer equal to capacity
. Each [Stream
] yields items sent
through the other’s [Sink
].