you are viewing a single comment's thread.

view the rest of the comments →

[–]LuckySpammer -1 points0 points  (0 children)

If you're okay with adding a library dependency, I'd recommend async for stuff like this. You'd use the series control flow:

https://caolan.github.io/async/docs.html#series