From c1de163c6e1a8dba8f2d442c2de27bdd952ca458 Mon Sep 17 00:00:00 2001 From: Graeme Yeates Date: Mon, 7 Sep 2015 12:55:35 -0400 Subject: Use setImmediate consistently over nextTick --- lib/async.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/async.js b/lib/async.js index 1f1e0ef..198e0b5 100644 --- a/lib/async.js +++ b/lib/async.js @@ -272,7 +272,7 @@ return callback(null); } else { if (sync) { - async.nextTick(iterate); + async.setImmediate(iterate); } else { iterate(); } @@ -1048,7 +1048,7 @@ var callback = args.pop(); var key = hasher.apply(null, args); if (key in memo) { - async.nextTick(function () { + async.setImmediate(function () { callback.apply(null, memo[key]); }); } -- cgit v1.2.1