Home
last modified time | relevance | path

Searched refs:onClose (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamCloseTest.java52 ints.onClose(closer); in testOneCloseHandler()
58 try (Stream<Integer> ints = countTo(100).stream().onClose(closer)) { in testOneCloseHandler()
64 try (Stream<Integer> ints = countTo(100).stream().filter(e -> true).onClose(closer)) { in testOneCloseHandler()
70 …try (Stream<Integer> ints = countTo(100).stream().filter(e -> true).onClose(closer).filter(e -> tr… in testOneCloseHandler()
82 ints.onClose(close1).onClose(close2); in testTwoCloseHandlers()
88 try (Stream<Integer> ints = countTo(100).stream().onClose(close1).onClose(close2)) { in testTwoCloseHandlers()
94 …try (Stream<Integer> ints = countTo(100).stream().filter(e -> true).onClose(close1).onClose(close2… in testTwoCloseHandlers()
100 …try (Stream<Integer> ints = countTo(100).stream().filter(e -> true).onClose(close1).onClose(close2… in testTwoCloseHandlers()
114 ints.onClose(close1).onClose(close2).onClose(close3); in testCascadedExceptions()
126 …try (Stream<Integer> ints = countTo(100).stream().onClose(close1).onClose(close2).onClose(close3))… in testCascadedExceptions()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DBaseStream.java150 S onClose(Runnable closeHandler); in onClose() method
DDoubleStream.java835 return stream.onClose(Streams.composedClose(a, b)); in concat()
DIntStream.java853 return stream.onClose(Streams.composedClose(a, b)); in concat()
DLongStream.java861 return stream.onClose(Streams.composedClose(a, b)); in concat()
DStream.java1082 return stream.onClose(Streams.composedClose(a, b)); in concat()
DAbstractPipeline.java332 public S onClose(Runnable closeHandler) { in onClose() method in AbstractPipeline
/libcore/ojluni/src/main/java/java/nio/file/
DFiles.java3476 .onClose(asUncheckedRunnable(ds));
3577 .onClose(iterator::close)
3690 .onClose(iterator::close)
3746 return br.lines().onClose(asUncheckedRunnable(br));