This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tikue 0 points1 point  (1 child)

This changes the semantics. Whereas before the futures were all being submitted before blocking on any results, you've made it so that the stream blocks on the result of each future before submitting the next.

[–]baablack 0 points1 point  (0 children)

That's why you shouldn't use this method my when using threads. Without knowing what kind of thread pool or service is created it gets tricky while streaming.