diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-09-07 12:55:35 -0400 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-09-07 12:55:35 -0400 |
commit | c1de163c6e1a8dba8f2d442c2de27bdd952ca458 (patch) | |
tree | 1479eabaab8af42f00c240f8f552981ff6542637 | |
parent | 6a1d6d29ce9e2c38fcc87a7815787f8fc7c12d73 (diff) | |
download | async-setImm.tar.gz |
Use setImmediate consistently over nextTicksetImm
-rw-r--r-- | lib/async.js | 4 |
1 files 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]); }); } |