
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
concurrent-lock
Advanced tools
Promise based lock object supporting simultaneous access limit.
npm install concurrent-lock
Create lock object with concurrent limit.
import Lock from 'concurrent-lock'
// concurrent access limit = 1
const simultaneous_limit = 2
const lock = new Lock(simultaneous_limit)
async somefunc() {
await lock.lock()
// ...some async proc...
lock.unlock()
// you can set timeout argument as millisec
// Timeout error will be thrown if lock couldn't acquire within specified timeout millisec.
await lock.lock(3000)
// ...some async proc...
lock.unlock()
}
Yusuke Shibata
MIT
FAQs
promise based concurrent implementation.
We found that concurrent-lock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.