Call asynchronous function recursively
问题 I have an asynchronous function that I want to call multiple times in a row. The problem is that "multiple" can be a few hundred thousand or millions... The obvious way is to call the same function from the callback like that: function foo() { asyncBar(foo); } Of course some logic is involved to stop the recursion. The question is whether the stack is filling with calls and may cause stackoverflow at some point? 回答1: The question is whether the stack is filling with calls and may cause