Sudoo-Asynchronous

Build Status codecov npm version downloads

:speedboat: Asynchronous Management

Install

yarn add @sudoo/asynchronous
# Or
npm install @sudoo/asynchronous --save

Parallel Pool

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 */,
    ...,
])

Other Usage

This document is working in progress. Check out Runner functions for the ability to run Promises within an order and result containing.