Is it somehow possible, using Scala\'s parallel collections to parallelize an Iterator
without evaluating it completely beforehand?
Here I am t
From the ML, Traversing iterator elements in parallel:
https://groups.google.com/d/msg/scala-user/q2NVdE6MAGE/KnutOq3iT3IJ
I moved off Future.traverse
for a similar reason. For my use case, keeping N jobs working, I wound up with code to throttle feeding the execution context from the job queue.
My first attempt involved blocking the feeder thread, but that risked also blocking tasks which wanted to spawn tasks on the execution context. What do you know, blocking is evil.