This class simulates a semaphore, running as many of the tasks simultaneously as possible while staying under the limit of the value passed for maxConcurrent.
Note that NodeJS is single-threaded, so this is more about prevention of overwhelming I/O systems and external services than it is about true parallel execution.
This class simulates a semaphore, running as many of the tasks simultaneously as possible while staying under the limit of the value passed for
maxConcurrent.Note that NodeJS is single-threaded, so this is more about prevention of overwhelming I/O systems and external services than it is about true parallel execution.