Skip to content

fix concurrency in bufferUnordered(map(urls, (url) => fetch(url)), 10)#4

Open
jamescorbett wants to merge 1 commit intorivet-dev:mainfrom
jamescorbett:main
Open

fix concurrency in bufferUnordered(map(urls, (url) => fetch(url)), 10)#4
jamescorbett wants to merge 1 commit intorivet-dev:mainfrom
jamescorbett:main

Conversation

@jamescorbett
Copy link
Copy Markdown

Example in readme:

bufferUnordered(map(urls, (url) => fetch(url)), 10)

actually runs in serial:

async generators auto-await yielded promises, making it impossible to pass raw promises through bufferUnordered via map.

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.

1 participant