Closed dchekmarev closed 8 years ago
oups, should check/fix tests and stuff around first :)
@dchekmarev there is a V3 branch where all this stuff is completely fixed (via promises stuff). I'm still fixing up docs and the tests could do with improvement. I haven't yet published it as an ALPHA (or next release) on npm, but if you want to use it I'm more than happy to do a quick tidy up of my commits and publish it (as ALPHA/BETA)
Sample to fail the original code with
RangeError: Maximum call stack size exceeded
:Plus this allows
doWhileAsync
to be really async and to return execution beforecallbackFn
call (in case when we have at least 1 additional iteration).