Releases: ori88c/zero-backpressure-semaphore-typescript
Releases · ori88c/zero-backpressure-semaphore-typescript
Update dev dependencies, add Prettier for formatting, improve README
Add README reference to the lock variant for concurrency 1 use case
Key Features
- Add README reference to the lock variant for concurrency 1 use case.
Enhance method waitForAllExecutingJobsToComplete and documentation improvements
Key Features
- Method
waitForAllExecutingJobsToComplete
enhancement: Enable to extend the waiting behavior to include potentially pending jobs which account for backpressure, by using the optionalconsiderPendingJobsBackpressure
parameter. When this flag is enabled, the method will account for both existing and future backpressure, even if the backpressure arises after the method is invoked. This is especially relevant for graceful shutdown scenarios, when multiple different callers share the same semaphore instance, each being unaware of the others. - Documentation improvements.
README enhancements and dev-dependencies upgrades
Key Features
- README Enhancements: Updated the coding example to include a more realistic real-world scenario for fetching large data sets, maintaining a memory complexity of O(max(page-size, semaphore-capacity)).
- Dev-dependencies upgrades: Updated dev-dependencies to address potential vulnerabilities. Notably, this package has no runtime dependencies - only dev-dependencies.
Refine README to include the weighted variant reference and a metrics example
Key Features
- Refine README to include the weighted variant reference and a metrics example.
README improvements: Table of Contents
Key Features
- README improvements: Added a Table of Contents. Additionally, enhanced the Getter Methods section with a clarification regarding O(1) time complexity.
README and Docs improvements
Key Features
- README improvements: Adding API and Getters sections.
- Documentation improvements.
Unit Tests and README improvements
Key Features
- Refactor Unit Tests: change indentation to 2 spaces, improve readability and terminology consistency. Additionally, expand coverage of the
waitForAllExecutingJobsToComplete
method. - README: Add section on the misleading promise-pool terminology commonly used to describe promise semaphores.
README and package.json improvements
Key Features
- README and package.json improvements.
README and Docs improvements
Key Features
- README and Docs improvements.