promise-make-counter
Version:
A simple function that makes a counter-based promise, which can be incremented and decremented, and it resolves once its counter reaches zero.
5 lines (4 loc) • 149 B
TypeScript
A simple function that makes a counter-based promise, which can be incremented and decremented, and it resolves once its counter reaches zero.