5 ms·
Also, if you're trying to do something after multiple async operations, you've got to manually count your callbacks. (As opposed to using Promise.all)
by joshuahutt 10y ago
Also, if you're trying to do something after multiple async operations, you've got to manually count your callbacks. (As opposed to using Promise.all)
- elmigranto 10y agoNo. You use flow management library. Just how you don't manually execute multiple promises with `Array.forEach` and same manual counting. Latter just happens to be in stdlib while former is userland.
- euroclydon 10y agoPlease give an example of a flow mgmt lib.
- elmigranto 10y agoProbably the most popular one is `async` — http://caolan.github.io/async/ http://caolan.github.io/async/.
- tkxxx7 10y agoI really enjoy this one - https://github.com/bigeasy/cadence https://github.com/bigeasy/cadence