[10] RFR 8075939: Stream.flatMap() causes breaking of short-circuiting of terminal operations (original) (raw)
Paul Sandoz paul.sandoz at oracle.com
Thu Dec 21 22:40:18 UTC 2017
- Previous message: RFR (JDK10/JAXP Doc-only) 8184431: References to @sun.com
- Next message: [10] RFR 8075939: Stream.flatMap() causes breaking of short-circuiting of terminal operations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Please review the following webrev that makes flatMap non-aggressive when pushing elements downstream if any downstream operation is short-circuiting.
http://cr.openjdk.java.net/~psandoz/jdk10/JDK-8075939-flatMap-aggressive-push/webrev/index.html <http://cr.openjdk.java.net/~psandoz/jdk10/JDK-8075939-flatMap-aggressive-push/webrev/index.html>
This enables support for flat mapping to an infinite stream (assuming there is a downstream short-circuiting operation to terminate the stream computation).
Thanks, Paul.
- Previous message: RFR (JDK10/JAXP Doc-only) 8184431: References to @sun.com
- Next message: [10] RFR 8075939: Stream.flatMap() causes breaking of short-circuiting of terminal operations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]