Process API Updates (JEP 102) (original) (raw)

Kasper Nielsen kasperni at gmail.com
Tue Mar 25 08:45:54 UTC 2014


On Mon, Mar 24, 2014 at 10:11 PM, roger riggs <roger.riggs at oracle.com>wrote:

Hi,

I'm starting to work on JEP 102, Process API Updates for JDK 9. Are there use cases for which this is insufficient? Please comment. What about a non-blocking waitFor mechanism such as

void onTerminate(IntConsumer consumer) or CompletionStage onTerminate();

Would be useful for spawning many small processes.

Also a waitFor method taking a timeout parameter. So you, for example, can wait for the subprocess to exit within 10 seconds. And if not kill it.



More information about the core-libs-dev mailing list