Skip to content
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

Throw exception when collecting an interator more than once #23

Open
TitanNano opened this issue Jan 19, 2021 · 1 comment
Open

Throw exception when collecting an interator more than once #23

TitanNano opened this issue Jan 19, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@TitanNano
Copy link
Contributor

Collecting an already collected iterator will yield an empty result, therefore we should throw an exception if the iterator has already been collected (generator is done).

@TitanNano TitanNano added the enhancement New feature or request label Jan 19, 2021
@TitanNano TitanNano self-assigned this Jan 22, 2021
@TitanNano
Copy link
Contributor Author

This is actually not that trivial, as there is no way of knowing if an iterator has been completed without consuming an item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant