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

@reda/parallelize-generator-promises@1.1.3

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
indexParallelizeGeneratorPromisesOptions
interface ParallelizeGeneratorPromisesOptions
deno add @reda/parallelize-generator-promises
import { type ParallelizeGeneratorPromisesOptions } from "@reda/parallelize-generator-promises";
npx jsr add @reda/parallelize-generator-promises
import { type ParallelizeGeneratorPromisesOptions } from "@reda/parallelize-generator-promises";
yarn dlx jsr add @reda/parallelize-generator-promises
import { type ParallelizeGeneratorPromisesOptions } from "@reda/parallelize-generator-promises";
pnpm dlx jsr add @reda/parallelize-generator-promises
import { type ParallelizeGeneratorPromisesOptions } from "@reda/parallelize-generator-promises";
bunx jsr add @reda/parallelize-generator-promises
import { type ParallelizeGeneratorPromisesOptions } from "@reda/parallelize-generator-promises";

Various options to configure the behavior of the parallelizeGeneratorPromises utility.

Properties

Limits the maximum number of promises that can be buffered at any given time. Useful to manage memory usage in the case where you are generating a lot of promises that aren't being consumed at a fast enough rate.

NOTE: this value must be greater than or equal to 1.

By default this is undefined which means there is no limit set.