We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What version of async are you using? 3.2.5
Which environment did the issue occur in (Node/browser/Babel/Typescript version) NodeJS(v18.15.0)+TypeScript(v5.2.2)
What did you do? Please include a minimal reproducible case illustrating issue.
await async.eachSeries(['a', 'b'], async (item) => { await async.eachSeries(['c', 'd'], async (secondItem) => { console.log('secondItem:', secondItem) }) }) console.log('completed');
What did you expect to happen? Iterate over a, b, inside that iteration iterate over c, d.
What was the actual result? Iteration for c, d happens for "a" but not for "b", and the "completed" log never occurrs. (It gets stucked).
This happens too with async.each.
async.each
It works when using for await.
for await
The text was updated successfully, but these errors were encountered:
I'm seeing this same behavior.
Sorry, something went wrong.
I can also confirm that this happens when using await async.filter() inside an async function.
await async.filter()
I cannot reproduce this. Make sure your typescript/babel/esbuild/etc. compiler is targeting ES2017 or later and preserving async functions.
async
❯ node async.js item: a secondItem: c secondItem: d item: b secondItem: c secondItem: d completed
No branches or pull requests
What version of async are you using?
3.2.5
Which environment did the issue occur in (Node/browser/Babel/Typescript version)
NodeJS(v18.15.0)+TypeScript(v5.2.2)
What did you do? Please include a minimal reproducible case illustrating issue.
What did you expect to happen?
Iterate over a, b, inside that iteration iterate over c, d.
What was the actual result?
Iteration for c, d happens for "a" but not for "b", and the "completed" log never occurrs. (It gets stucked).
This happens too with
async.each
.It works when using
for await
.The text was updated successfully, but these errors were encountered: