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

Iterators for asynchronous views #1

Closed
yrd opened this issue Dec 6, 2021 · 0 comments
Closed

Iterators for asynchronous views #1

yrd opened this issue Dec 6, 2021 · 0 comments
Assignees

Comments

@yrd
Copy link
Member

yrd commented Dec 6, 2021

Asynchronous views currently don't support the iteration protocol, so this isn't possible (although mentioned in the docs):

async for lead in Leads.find():
    print(lead)
@yrd yrd self-assigned this Dec 16, 2021
@yrd yrd closed this as completed in e26f508 Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant