New issue
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
Using async / await inside async.auto chain leads to TypeError: callback is not a function #1584
Comments
We treat |
Yes, learnt about the same from StackOverflow and so posting a reference to same here, in case someone stumbles upon this in future: Using-async-await-inside-async-auto-chain |
This also applies to async.parallel if the functions are async you need to return the value not call the callback. This should get added to the documentation and examples.
|
I'd like to re-write a lot of the examples in the docs to use more async/await, to highlight what you can do now. |
More than features in this package, we need docs. Will be great to see more examples in the future |
@aearly can you please explain in details i am not getting. @gone-phishing async.eachSeries([1,2,3], async(item, cb) => { what mistake i am doing here i am not getting |
What version of async are you using?
2.6.1
Which environment did the issue occur in (Node version/browser version)
8.11.3
What did you do? Please include a minimal reproducible case illustrating the issue.
Assuming fileObj is supplied from outside:
What did you expect to happen?
After collectData finishes execution, filterData should begin execution the param passed inside collectCB function
What was the actual result?
TypeError: collectCB is not a function.
The same code executes well with version 2.0.1 but after upgrade to 2.6.1 it has stopped working and its critical for us. Any work arounds will also be appreciated.
The text was updated successfully, but these errors were encountered: