brian.goetz at oracle.com
Fri Jun 28 07:18:37 PDT 2013
Then we would cross that bridge when we get there!
On 6/28/2013 6:20 AM, Remi Forax wrote:
> On 06/27/2013 10:43 PM, Brian Goetz wrote:
>> A possible minor API cleanup:
>> For each pair of low-level methods stream() and parallelStream() in
>> StreamSupport, we could combine these into a single method that takes
>> an additional boolean isParallel argument. This matches the
>> underlying implementation they call anyway, and simplifies callers
>> like concat, which now does:
>> return (a.isParallel() || b.isParallel())
>> ? StreamSupport.parallelStream(split)
>> : StreamSupport.stream(split);
> What if we add a third kind of stream in the future ?
More information about the lambda-libs-spec-observers