A child process started by start(), or run to completion by run(). Move-only. Destroying a process that was not waited for kills the child and its process tree first, so an engine never leaks a tool it launched and never blocks on a grandchild that kept the output open. Threading: read_output(), read_error(), is_running() and kill() may be called from any thread, including while another thread blocks in wait(). start(), wait() and destruction belong to one thread at a time.
A child process started by start(), or run to completion by run(). Move-only. Destroying a process that was not waited for kills the child and its process tree first, so an engine never leaks a tool it launched and never blocks on a grandchild that kept the output open. Threading: read_output(), read_error(), is_running() and kill() may be called from any thread, including while another thread blocks in wait(). start(), wait() and destruction belong to one thread at a time.