On Mar 11, 2015, at 12:12 PM, Peter Levart <peter.lev...@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.

Reply via email to