Simple and very effective implementation of a Semaphore, used for easily parallelizing work in JavaScript/TypeScript.| Alexandru Nedelcu - Blog