Running async tasks sequentially
How to run a bunch of async tasks which return promises sequentially? If we’re running some task sequentially, it’s very likely that some tasks depend on the result of previous tasks. Let’s check this badly written example first. The sequence below will run each step…