Skip to main content

multiplexed

Function multiplexed 

Source
pub fn multiplexed<S1, S2>(s1: S1, s2: S2) -> MultiplexedStream<S1, S2>
Expand description

Attempts to pull items from both streams. S1 will always be polled before S2. if S1 finishes first, the stream is considered over. Attempts naive fairness by polling S2 before stream close if S1 finished and S2 still has Ready items.