Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

values() doesn't return an async iterator #3

Closed
taymonbeal opened this issue Mar 4, 2018 · 1 comment
Closed

values() doesn't return an async iterator #3

taymonbeal opened this issue Mar 4, 2018 · 1 comment

Comments

@taymonbeal
Copy link

The documentation says that values() returns an async iterator, but actually it just blocks until the channel is closed and then returns all the values at once in an array.

@NodeGuy
Copy link
Owner

NodeGuy commented Mar 21, 2018

The documentation is confusing. values is an async function that returns a promise to an iterator, not an AsyncIterator. I've updated the documentation to make it (hopefully) a bit more clear.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants