I am not sure that the function is synchronous, but to be sure, you could first set a monitor on the process with Process.monitor
, then kill it, then wait for the :DOWN
message from the monitor.
5 Likes