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
.
Optional
onRejected: ((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
.
Optional
signal: stringOptional
options: KillOptions
Stream combining/interleaving
stdout
andstderr
.This is
undefined
if either: - theall
option isfalse
(the default value) - bothstdout
andstderr
options are set to'inherit'
,'ipc'
,Stream
orinteger