Skip to content

Add default concurrency and a way to set it up globally - #92

Closed
roemdevs wants to merge 3 commits into
sindresorhus:mainfrom
roemdevs:feat/default-concurrency
Closed

roemdevs wants to merge 3 commits into
sindresorhus:mainfrom
roemdevs:feat/default-concurrency

Conversation

@roemdevs

@roemdevs roemdevs commented Aug 24, 2026 •

Copy link
Copy Markdown

Fixes #93.

Set a default concurrency of Number.POSITIVE_INFINITY (as before)

Added 2 new functions: setDefaultConcurrency and getDefaultConcurrency:

  • setDefaultConcurrency globally overrides globalConcurrency (used in pMap and pMapIterable)
  • getDefaultConcurrency returns the current value of globalConcurrency

@sindresorhus

Copy link
Copy Markdown
Owner

#93 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a way to globally set the default concurrency number

2 participants