aloiscochard/scalax-parstream — Issue #1: Looks interesting, but maybe I'm using it wrong...
Author: timday
Created: 2012-01-05 20:15:14+00:00
State: open

I recently found myself wishing for the ability to do something like Stream.from(1).par ie wanting some sort of "ParStream" ( http://stackoverflow.com/questions/8719849/emulating-a-scala-parstream ) and this looks like it could be just what I'm looking for.

Copying the ParStream.scala sans scalax package line, it compiles fine with 2.9.1.final (I use Debian's scala packages), but attempting to use it with something like:

import ParStream._
val s=ParStream(Iterator.from(2),8)
ParStream(Iterator.from(2),8).map(x=>{println(x);x}).takeWhile(_<100)

seems to just result in the process hanging up (zero CPU, never outputs anything, never terminates).
Any tips re correct usage or minimum scala version needed ?
Thanks