Someone asked how to run 10 HTTP requests in parallel, and collect the output with async_std + surf. I wrote a quick example using task::spawn + sync::Barrier here:https://github.com/async-rs/async-std/issues/303#issuecomment-540612748 …
-
Show this thread
-
Replying to @yoshuawuyts
I don't have a lot of context so maybe I'm missing something, but wouldn't this be a good use for FuturesUnordered? Or is that not an answer to this question because it's not part of async_std or something like that?
1 reply 0 retweets 1 like -
Replying to @hdevalence
You're right that it would be! I think it's a great building block for fast concurrent streams, but not necessarily an end-user API. Tho Barrier probably isn't either haha. StreamExt::try_for_each_concurrent is closer, but not quite right either imo. Need to finish my post haha
1 reply 0 retweets 1 like
Where "post" = something I started writing about a complete parallel streams model that has been on my backlog to finish for the past month 
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.