New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@node-libraries/semaphore

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@node-libraries/semaphore - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "@node-libraries/semaphore",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -5,7 +5,27 @@ # @node-libraries/semaphore

## Example
## usage
```ts
// Importing packages
import { semaphore } from "@node-libraries/semaphore";
// Instance Creation
const s = semaphore();
// Synchronization Lock
await s.acquire();
// Synchronization lock release
s.release();
// Wait until all locks are unlocked.
await s.all();
```
```ts
// Specify maximum number of parallels
const s = semaphore(5);
```
## example
```ts
import { semaphore } from "@node-libraries/semaphore";
const f = (value: string) =>

@@ -12,0 +32,0 @@ new Promise<void>((resolve) => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc