Semaphore allows you to limit the amount of async calls happening between enter() and exit()
This can be useful when limiting the number of http calls, browser api calls, etc either for performance or to work
around browser limitations like max Image.decode() calls in chromium being 256.
Semaphore allows you to limit the amount of async calls happening between
enter()
andexit()
This can be useful when limiting the number of http calls, browser api calls, etc either for performance or to work around browser limitations like max Image.decode() calls in chromium being 256.