1.0.0 • Published 6 years ago
scalable-promise-all v1.0.0
scalable-promise-all
Mutable version of the Promise.all. You can mutate the provided array on the fly using this package. Use push, pop, shift or splice to mutate array of Promises.
Installing
Using npm:
$ npm install scalable-promise-allUsing yarn:
$ yarn add scalable-promise-allExample
import scalablePromiseAll from "scalable-promise-all";
const foo = async () => {
await scalablePromiseAll(someArray);
// Some code mutating someArray.
// scalablePromiseAll function will wait for the end of all promises.
};
foo();License
ISC
1.0.0
6 years ago