1.1.1 • Published 1 year ago
p-pool v1.1.1
install
yarn add p-pool
Usage
const PPool = require("p-pool");
const tasks = []; // Array<() => Promise<any>>
const pool = new PPool(tasks, (threshold = 10)); // max concurrence
pool.run();
yarn add p-pool
const PPool = require("p-pool");
const tasks = []; // Array<() => Promise<any>>
const pool = new PPool(tasks, (threshold = 10)); // max concurrence
pool.run();