Gathering the Streams

Java 8 introduced the API, which represents a lazily computed, potentially unbounded sequence of values (Streams was also the first designed-for-lambdas API in the JDK). Streams supports the ability to process the stream either sequentially or in parallel. In this document, we explore a corresponding extensible intermediate operation, called Stream::gather, which is able to address many of the requests we’ve gotten for additional operations …'

More at