Skip to main content
This release is 4 versions behind 1.1.5 — the latest version of @reda/parallelize-generator-promises. Jump to latest

@reda/parallelize-generator-promises@1.1.1

Runs promises yielded by generators in parallel

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
a week ago
indexparallelizeGeneratorPromises
function parallelizeGeneratorPromises
deno add @reda/parallelize-generator-promises
import { parallelizeGeneratorPromises } from "@reda/parallelize-generator-promises";
npx jsr add @reda/parallelize-generator-promises
import { parallelizeGeneratorPromises } from "@reda/parallelize-generator-promises";
yarn dlx jsr add @reda/parallelize-generator-promises
import { parallelizeGeneratorPromises } from "@reda/parallelize-generator-promises";
pnpm dlx jsr add @reda/parallelize-generator-promises
import { parallelizeGeneratorPromises } from "@reda/parallelize-generator-promises";
bunx jsr add @reda/parallelize-generator-promises
import { parallelizeGeneratorPromises } from "@reda/parallelize-generator-promises";

Utility to run arrays of promises yielded by a given generator in parallel.

Type Parameters

Parameters

generator: () => Generator<Promise<T>[]> | AsyncGenerator<Promise<T>[]>

Promises-yielding generator function to parallelize.

optional
unnamed 1: ParallelizeGeneratorPromisesOptions = [UNSUPPORTED]

Return Type

AsyncGenerator<T, void, undefined>