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