Asynchronous Management
yarn add @sudoo/asynchronous
# Or
npm install @sudoo/asynchronous --save
Parallel Pool is used to execute a large amount of Promise
, with a maximum parallel count.
import { ParallelPool } from "@sudoo/asynchronous";
const parallel: ParallelPool = ParallelPool.create(5);
parallel.execute([
async () => /* Some Thing */,
async () => /* Some Thing */,
async () => /* Some Thing */,
...,
])
This document is working in progress. Check out Runner
functions for the ability to run Promises
within an order and result containing.