Advanced Promises Coordination: Serialization and Concurrency Limiting

from blog Vladimir Klepov as a Coder, | ↗ original
I'm sure you can chain promises with doBefore().then(() => doAfter()) and even run multiple promises in parallel using Promise.any. However, chaining an unknown count of homogenous promises is trickier. Let me teach you to serialze promises like a pro! Suppose we want a list of all the cafes in a mid-sized european country.However, the API only...