[About] [Projects] [Resume]
INFORMATIONAL
Category: InformationalOlli Vanhoja
2017

async-sema

This is a semaphore implementation for JavaScript for use with async and await. The implementation follows the traditional definition of a semaphore rather than the definition of an asynchronous semaphore seen in some js community examples. Where as the latter one generally allows every defined task to proceed immediately and synchronizes at the end, async-sema allows only a selected number of tasks to proceed at once while the rest will remain waiting.

Links

  • https://github.com/zeit/async-sema GitHub repository page