We're probably going to rename `stream::join` to `stream::Stream::merge` by the way. Filed the PR for it earlier. It's now more similar to `Stream::{chain,zip,unzip}`!https://github.com/async-rs/async-std/pull/321 …
-
-
Show this thread
-
let a = stream::repeat(1u8).take(2); let a = a.chain(stream::once(2u8)); let b = stream::repeat(3u8).take(2); let b = b.chain(stream::once(4u8)); let s = a.merge(b); s.for_each(|num| dbg!(num)).await; // => 1, 1, 2, 3, 3, 4
Show this thread
End of conversation
New conversation -
-
-
I can't wait until async-std gets more widely adopted and we get to do all this stuff in regular day to day everything
-
Big same!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.