Portably killing a child process while waiting on it?


I’m wondering if there is any reason why the process module doesn’t support sending a kill signal to a child process while waiting (in another thread) for it to complete?

Is there some way around this, or do I need to wait for 1.18 to come out with try_wait and then poll for the process to exit, or just write separate code for each platform?

BTW, a Clone implementation for Child would address this problem, or a way to create some other Send representation of a pid.