Promise Semaphore for Node.js projects, inspired by the RAII idiom. Offering backpressure control for enhanced efficiency, utilizing a communicative API that signals availability. Additionally, it features a modern API and incorporates mechanisms for graceful termination and error handling.
MIT License
Published by ori88c about 1 month ago
waitForAllExecutingJobsToComplete
method.Published by ori88c 2 months ago
Published by ori88c 2 months ago
Published by ori88c 2 months ago
Published by ori88c 2 months ago
waitForAvailability
.Published by ori88c 3 months ago
Published by ori88c 3 months ago
Published by ori88c 4 months ago
waitForAvailability
is optional, and demonstrating how the same effect can be achieved via startExecution
alone.Published by ori88c 4 months ago
waitTillAllExecutingJobsAreSettled
to waitForAllExecutingJobsToComplete
for improved readability.Published by ori88c 4 months ago
waitForAvailability
. Please note, this method is not commonly required. However under some cases, it may be a useful preliminary action before startExecution
. Especially whenever there's a motive that startExecution
will start immediately, for example due to working with a message-queue that has a tight timeout constraint.Published by ori88c 4 months ago
Published by ori88c 4 months ago
Published by ori88c 4 months ago
startExecution
are now captured.extractUncaughtErrors
method.amountOfUncaughtErrors
getter method.Published by ori88c 4 months ago
Published by ori88c 4 months ago
Published by ori88c 4 months ago
Published by ori88c 4 months ago
Published by ori88c 4 months ago
Published by ori88c 4 months ago
Published by ori88c 4 months ago