PooledMapOptions

import { PooledMapOptions } from "jsr:@ende/async/unstable-pool";

interface ยท experimental

interface PooledMapOptions

Options for pooledMap.

Properties

poolLimit

poolLimit: number

The maximum count of items being processed concurrently. Must be a positive integer.

signal

signal?: AbortSignal

An AbortSignal to cancel the pooled mapping operation.

If the signal is aborted, no new items will begin processing and the source iterator is closed. All currently executing items are allowed to finish and are still yielded on success. The iterator then rejects with the signal's reason, or with an AggregateError collecting the rejections if any of those in-flight items failed.

Default: undefined

Source