Use terminate() instead of kill() to stop the promise.
This send SIGTERM instead of SIGKILL to the promise. This allow the promise to catch te signal and do some clean up before exiting.
Showing
Please register or sign in to comment
This send SIGTERM instead of SIGKILL to the promise. This allow the promise to catch te signal and do some clean up before exiting.