Similar to childProcess.kill(). This is preferred when cancelling the child process execution as the error is more descriptive and childProcessResult.isCanceled is set to true.
OptionalonRejected: ((reason: ExecaError<StdoutErrorType>) => ResultType | PromiseLike<ResultType>)Same as the original child_process#kill(), except if signal is SIGTERM (the default value) and the child process is not terminated after 5 seconds, force it by sending SIGKILL.
Optionalsignal: stringOptionaloptions: KillOptions
Stream combining/interleaving
stdoutandstderr.This is
undefinedif either: - thealloption isfalse(the default value) - bothstdoutandstderroptions are set to'inherit','ipc',Streamorinteger