1.0.6 • Published 5 months ago

octopus-promise v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Octopus

Octopus can run a series of promises with a limitation.

Installation

npm install --save octopus-promise

Examples with Typescript

run all promises or async functions in an array

import { OctoPus, getItem } from "octopus-promise";

let num = 0;

await new OctoPus(getItem(10), {
  workers: 3,
  executor: async (i: number) => {
    num += i;
  },
}).execute();
1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

3 years ago

1.0.0

3 years ago