New post: Streams Concurrency
In this post we talk about concurrency, apply it to streams, and explore future directions. Illustrated by @_lrlna.
https://blog.yoshuawuyts.com/streams-concurrency/ …pic.twitter.com/jJK78W2wOs
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Did you catch the gist I linked? https://gist.github.com/yoshuawuyts/182721650d1858ea25f7590ac0384d8d … I think this gets us pretty close already — was this what you had in mind? Next step I'd like is to make this take the ParallelStream shape.
Hah, sorry. That was the "this sketch" link I saw and forgot to go check, of course it was. I was actually talking about "without calling .await on each JoinHandle".. passing the JoinHandles over a stream to another task that awaits them, perhaps via merge?
Oh yeah, I guess that's another option. Feels quite similar to how FuturesUnordered works. I think I like it slightly less because it feels like we'd have to do more bookkeeping. But possibly it's more efficient. Unsure!
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.