There are situations when this module throws errors from inside of setTimeout callback that are impossible to catch from the outside and cause a process exit (unless caught with global uncaughtException handler, but I don't want that :wink:). This is the case with any uncaught error thrown inside of a callback scheduled with asyncish.
This PR fixes that. I've chosen a method that seemed least invasive to the codebase.
Hello,
There are situations when this module throws errors from inside of
setTimeout
callback that are impossible to catch from the outside and cause a process exit (unless caught with globaluncaughtException
handler, but I don't want that :wink:). This is the case with any uncaught error thrown inside of a callback scheduled withasyncish
.This PR fixes that. I've chosen a method that seemed least invasive to the codebase.