Constructing parallel streams

Brian Goetz brian.goetz at oracle.com
Mon Dec 10 17:20:20 PST 2012


> And what is the semantics of parallel on an infinite stream, you split
> the infinity ?

It is perfectly sensible.  We can take infinite generators and 
parallelize them easily enough; see the implementation of 
Iterators.spliterator().  The only challenge is "how do you make it 
stop", if you care about that.  Which is why we're talking about 
cancelation.



More information about the lambda-libs-spec-observers mailing list