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

feat: integrate limit to last #145

Merged
merged 3 commits into from Aug 7, 2020

Conversation

rafilong
Copy link
Contributor

@rafilong rafilong commented Aug 6, 2020

Integrate changes from #57 to the async client.

@rafilong rafilong added this to the v2 milestone Aug 6, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 6, 2020
Copy link
Collaborator

@BenWhitehead BenWhitehead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for porting this over! Deferring to @crwilcox for final approval.

google/cloud/firestore_v1/async_collection.py Show resolved Hide resolved
google/cloud/firestore_v1/async_query.py Show resolved Hide resolved
google/cloud/firestore_v1/collection.py Show resolved Hide resolved

async for _ in get_response:
pass
get_response = await collection.get()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this map to the sync version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same functionality, now neither are Iterator/Generator/AsyncGenerators. Both aggregate results so they can be reversed and return a list, though the async function is a coroutine that has that functionality.

@rafilong rafilong merged commit 55da695 into googleapis:v2-staging Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants