< prev index next >

src/java.base/share/classes/java/lang/Process.java

Print this page

        

*** 366,376 **** * returned has been {@link java.util.concurrent.CompletableFuture#complete completed}. * <p> * Processes returned from {@link ProcessBuilder#start} override the * default implementation to provide an efficient mechanism to wait * for process exit. ! * <p> * @apiNote * Using {@link #onExit() onExit} is an alternative to * {@link #waitFor() waitFor} that enables both additional concurrency * and convenient access to the result of the Process. * Lambda expressions can be used to evaluate the result of the Process --- 366,376 ---- * returned has been {@link java.util.concurrent.CompletableFuture#complete completed}. * <p> * Processes returned from {@link ProcessBuilder#start} override the * default implementation to provide an efficient mechanism to wait * for process exit. ! * * @apiNote * Using {@link #onExit() onExit} is an alternative to * {@link #waitFor() waitFor} that enables both additional concurrency * and convenient access to the result of the Process. * Lambda expressions can be used to evaluate the result of the Process
< prev index next >