Function bounded
Source pub fn bounded<Req, Resp>(
capacity: usize,
) -> (Requester<Req, Resp>, Responder<ReceivedRequest<Req, Resp>>)
Expand description
Create a bounded Requester-Responder pair.
That is, once the channel is full, future senders will yield when awaiting until there’s space again