Skip to content

Commit

Permalink
*async* issue with too deep of call stack.
Browse files Browse the repository at this point in the history
* Error fault with `RangeError: Maximum call stack size exceeded`

* using `process.nextTick`
* suggested option of `setTimeout(callback, 0)` but not viable for CONTRIBUTING.md

See caolan/async#75
  • Loading branch information
Martii committed May 2, 2017
1 parent 25d4755 commit 00137b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app.js
Expand Up @@ -472,7 +472,12 @@ require('./routes')(app);
// console.warn(aUser.name, aUser._id);
// }
// });
// aEachCallback();
//
// // async.setImmediate(aEachCallback);
//
// process.nextTick(function() { aEachCallback(); });
//
// // aEachCallback();
// });
// });

Expand Down

0 comments on commit 00137b4

Please sign in to comment.