diff options
author | megawac <megawac@gmail.com> | 2015-07-19 21:16:17 -0400 |
---|---|---|
committer | megawac <megawac@gmail.com> | 2015-07-19 21:17:45 -0400 |
commit | b0fe15781893bb605b90ced4204175026640b033 (patch) | |
tree | 9af236e86170da44a0393d2383fabbd43b2ba4e8 /README.md | |
parent | 96a72957fdb49b48ffc476c0ef33853cdbf2f20f (diff) | |
download | async-b0fe15781893bb605b90ced4204175026640b033.tar.gz |
Fix StackOverflow anchor
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -52,9 +52,7 @@ There are many more functions available so take a look at the docs below for a full list. This module aims to be comprehensive, so if you feel anything is missing please create a GitHub issue for it. -## Common Pitfalls - -<a name="stack-overflow"> +## Common Pitfalls <sub>[(StackOverflow)](http://stackoverflow.com/questions/tagged/async.js)</sub> ### Synchronous iteration functions If you get an error like `RangeError: Maximum call stack size exceeded.` or other stack overflow issues when using async, you are likely using a synchronous iterator. By *synchronous* we mean a function that calls its callback on the same tick in the javascript event loop, without doing any I/O or using any timers. Calling many callbacks iteratively will quickly overflow the stack. If you run into this issue, just defer your callback with `async.nextTick` to start a new call stack on the next tick of the event loop. |