Promise extensions and helpers
Methods
contructur()
contructur(maxAmount, timeout, title, promiseLib)
Options:
- maxAmount: used to set the amount of promise instances which can run at the same time
- timeout: used to define an interval to retry get a new slot to run a promise
- title: title of the promise helper instance. useful to identify the current instance
- promiseLib: put in your favorite promise lib
description comes here
How to use()
reserveSemaphore() and resolveSemaphore()
Example:
var IsiPromiseCl = ;var isiprom = 5 50 ; forvar i = 0; i < 500; ++i isiprom then ... do your staff here ... ;