You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Leif Warner (pdxleif) said:
The scalaz traverse on Streams seems to be waiting for completion of the prior future before beginning execution of the next future, e.g. forcing evaluation the next element on completion of the current future. Which I guess is useful, but seems like the same behavior that you'd get from folding over a strict list w/ .flatMapping on the Futures. I'm used to more parallel behavior from Applicative, but perhaps this way gives you the ability to short-circuit on the rest if a prior one fails?
Calling
Future.traverse
on a stream shouldn't need to need to consume the stream before returning a future.Contrast the following, for example (using Scalaz 7 and the contrib applicative functor instance for futures):
See this Stack Overflow question for more discussion.
The text was updated successfully, but these errors were encountered: