Intro
Here are my implementation of some of Promise concurrency methods and async helper functions.
Topics
Promise.all() implementation
Fulfills when all of the promises fulfill; rejects when any of the promises rejects.
Promise.allSettled() implementation
Fulfills when all promises settle.
Promise.any() implementation
Fulfills when any of the promises fulfills; rejects when all of the promises reject.
Promise.race() implementation
Settles when any of the promises settles. In other words, fulfills when any of the promises fulfills, rejects when any of the promises rejects.
setTimeout implementation