-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
forEach not calling callback on completion? #2
Comments
The iterator function accepts 'arg' and a callback. After completion it must call the callback. Once all iterators have called their callback the forEach callback is executed... I hope that's clear, because the wording is a bit awkward. Try updating your example to this:
That should now display "finished" :) |
Although this is described in the README, the forEach example doesn't really show it. Perhaps the examples could use a bit of an update. |
ahhh thanks, great support ;-) |
forgot to close |
Might be a stupid question, but "finished" is never displayed in the following example
The text was updated successfully, but these errors were encountered: