1.0.0 • Published 4 years ago

scalable-promise-all v1.0.0

Weekly downloads
6
License
ISC
Repository
github
Last release
4 years ago

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

Using yarn:

$ yarn add scalable-promise-all

Example

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