Skip to content

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.


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.

3 participants