callbackify
callbackify copied to clipboard
Using process.nextTick to call callbacks
If there is a error thrown in the callback, I believe the current implementation creates an unhandled promise rejection.
Wrapping the calls in process.nextTick appears to fix it in my case, correct me if I'm wrong!