Description
Queue of async functions (using promises) with multiple time limits or time limits tree
Examples
let TimeLimit TimeLimits = const timeLimit = 5 // max active functions 10000 // per 10000 milliseconds const timeLimits = // combine time limits timeLimit timeLimit // if you add strict equal instances only one will be used 10 60 * 1000 // you can create time limits tree 1 10000 5 5 * 60 * 10000 // run functionsconst tasks = for let i = 0; i < 100; i++ tasks for let i = 0; i < 100; i++ tasks for let i = 0; i < 100; i++ tasks Promise alltasks ; // OR async { await Promisealltasks console}