If specified, the function will poll at the given interval (in milliseconds)
to check if the process has terminated after sending the kill signal.
Default is 50 ms.
Optionalsignal
signal?:AbortSignal|null
An optional AbortSignal that can be used to abort the operation.
If specified, the function will poll at the given interval (in milliseconds) to check if the process has terminated after sending the kill signal. Default is 50 ms.