Skip to content

Commit c444bc6

Browse files
committed
Bump version to v3.1.1: Add README reference to the lock variant for concurrency 1 use case
1 parent 52862a1 commit c444bc6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ The design addresses the two primary semaphore use cases in Node.js:
1111

1212
Each use case necessitates distinct handling capabilities, which will be discussed separately with accompanying examples.
1313

14-
If your use case involves weighted jobs — where instead of limiting the maximum concurrency, you need to enforce a maximum total weight for concurrently executing jobs — consider using the weighted variant of this package: [zero-backpressure-weighted-promise-semaphore](https://www.npmjs.com/package/zero-backpressure-weighted-promise-semaphore).
14+
If your use case involves weighted jobs - where instead of limiting the maximum concurrency, you need to enforce a maximum total weight for concurrently executing jobs - consider using the weighted variant of this package: [zero-backpressure-weighted-promise-semaphore](https://www.npmjs.com/package/zero-backpressure-weighted-promise-semaphore).
15+
16+
If your use case requires a concurrency of 1, consider using the lock variant of this package: [zero-overhead-promise-lock](https://www.npmjs.com/package/zero-overhead-promise-lock). While semaphores can simulate locks by setting their concurrency to 1, a dedicated lock implementation offers greater efficiency with minimal overhead.
1517

1618
## Table of Contents
1719

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zero-backpressure-semaphore-typescript",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"description": "A modern Promise-semaphore for Node.js projects, enabling users to limit the number of concurrently executing promises. Offering backpressure control for enhanced efficiency, utilizing a communicative API that signals availability, promoting a just-in-time approach. Additionally, it incorporates mechanisms for graceful termination and error handling, making it suitable for complex scenarios.",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)