race-as-promised
Advanced tools
Weekly downloads
Readme
This module implements Promise.race() in a way that does not leak memory.
The V8 Promise implementation does leak memory in many common Promise.race([...]) call cases; see e.g. https://github.com/nodejs/node/issues/17469.
The V8 Promise implementation is likely not going to be fixed.
See also: https://bugs.chromium.org/p/v8/issues/detail?id=9858
npm install race-as-promised
const race = require ("race-as-promised");
// Use race([...]) instead of Promise.race([...])
The source code and test core have been made available under The Unlicense by Brian Kim, to whom we owe our gratitude.
FAQs
Alternate Promise.race() implementation which doesn't leak memory, courtesy Brian Kim (https://github.com/brainkim)
The npm package race-as-promised receives a total of 862 weekly downloads. As such, race-as-promised popularity was classified as not popular.
We found that race-as-promised 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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.