JEP 102 Process Updates revised API draft

Paul Sandoz paul.sandoz at oracle.com
Wed Mar 11 11:22:40 UTC 2015


On Mar 11, 2015, at 12:12 PM, Peter Levart <peter.levart at gmail.com> wrote:
>> 
>>     CF<Process> onProcessExit() { ... } // crappy default
> 
> I don't know. There are two ways to get that behaviour then. Process.onProcessExit() and Process.toHandle().onExit(). If Process is not a subtype of ProcessHandle, we can skip this method, since you can always do the following:
> 
> Process p = ...
> p.toHandle().onExit(ph -> { ... use captured p directly ... });
> 

That seems reasonable to me.

Paul.



More information about the core-libs-dev mailing list