We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40f85b commit c390573Copy full SHA for c390573
lib/binding.js
@@ -53,7 +53,7 @@ function maybeCallback(callback, ctx, thisArg, func) {
53
err = e;
54
}
55
return new Promise(function(resolve, reject) {
56
- process.nextTick(function() {
+ setImmediate(function() {
57
if (err) {
58
reject(err);
59
} else {
0 commit comments