UNPKG

zero-backpressure-semaphore-typescript

Version:

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-tim

75 lines (74 loc) 2.04 kB
{ "name": "zero-backpressure-semaphore-typescript", "version": "3.1.3", "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.", "repository": { "type": "git", "url": "git+https://github.com/ori88c/zero-backpressure-semaphore-typescript.git" }, "contributors": [ "Ori Cohen (https://github.com/ori88c/)" ], "homepage": "https://github.com/ori88c/zero-backpressure-semaphore-typescript#readme", "author": "Ori Cohen", "license": "MIT", "scripts": { "build": "tsc", "prepare": "npm run build", "format": "prettier --write \"src/**/*.ts\"", "test": "jest" }, "keywords": [ "semaphore", "mutex", "promise-limiter", "promise-semaphore", "promise-pool", "task-semaphore", "task-pool", "concurrency-limiter", "lock", "job", "task", "async-task", "concurrency", "backpressure", "backpressure-control", "graceful-termination", "graceful-teardown", "graceful-shutdown", "wait-for-availability", "notify-availability", "free-slot", "execution-slot", "wait-for-completion", "wait-in-flight", "error-handling", "uncaught-error", "uncaught-rejection", "async", "nodejs", "typescript", "ts", "ES2020" ], "engines": { "node": ">=14.5.0" }, "devDependencies": { "@types/jest": "^29.5.14", "jest": "^29.7.0", "ts-jest": "^29.3.2", "ts-node": "^10.9.2", "typescript": "^5.5.2", "prettier": "^3.5.3" }, "types": "./dist/zero-backpressure-semaphore.d.ts", "main": "./dist/zero-backpressure-semaphore.js", "files": [ "src/", "dist/", "README.md", "LICENSE" ] }