Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

feat: AsyncIO Integration [Part 2] - #28

Merged
gcf-merge-on-green[bot] merged 4 commits into
googleapis:masterfrom
lidizheng:aio-part-2
Jun 2, 2020
Merged

feat: AsyncIO Integration [Part 2]#28
gcf-merge-on-green[bot] merged 4 commits into
googleapis:masterfrom
lidizheng:aio-part-2

Conversation

@lidizheng

@lidizhenglidizheng commented May 18, 2020

Copy link
Copy Markdown
Contributor

Children PR of #26.

This PR includes AsyncIO version of:

  • Polling future
  • Page iterator

The AsyncIO version of polling future still uses the same mechanism as the sync version. The AsyncIO polling future tries to update its own state whenever the application want to access information or perform actions.

For page iterator, it has similar interface design as sync version. But instead of fulfilling normal generator protocol, it is based on the async generator.

Related #23

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label May 18, 2020
@lidizhenglidizheng changed the title AsyncIO Integration [Part 2]feat: AsyncIO Integration [Part 2]May 18, 2020
@lidizheng
lidizhengforce-pushed the aio-part-2 branch 2 times, most recently from 93a8cb8 to 41cf623CompareMay 18, 2020 21:54
@lidizheng
lidizheng marked this pull request as ready for review May 18, 2020 22:11
Comment threaddocs/operation.rst Outdated
Comment threadgoogle/api_core/operation_async.py Outdated
Comment threadgoogle/api_core/operation_async.py Outdated
Comment threadgoogle/api_core/future/async_future.py

@lidizhenglidizheng left a comment

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@busunkim96 Thanks for reviewing! PTALA.

Comment threaddocs/operation.rst Outdated
Comment threadgoogle/api_core/future/async_future.py
Comment threadgoogle/api_core/operation_async.py Outdated
Comment threadgoogle/api_core/operation_async.py Outdated
* Polling future
* Page iterator
* With unit tests & docs
Comment threaddocs/operation.rst Outdated
Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>

@software-dovsoftware-dov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks good, tests look good, just one minor commentary nit.

Comment threadgoogle/api_core/page_iterator_async.py Outdated
@lidizheng

Copy link
Copy Markdown
ContributorAuthor

Thanks for reviewing 👍

@busunkim96busunkim96 added the automerge Merge the pull request once unit tests and other checks pass. label Jun 2, 2020
@gcf-merge-on-green
gcf-merge-on-greenBot merged commit dd9b2f3 into googleapis:masterJun 2, 2020
gcf-merge-on-greenBot pushed a commit that referenced this pull request Jun 4, 2020
@busunkim96busunkim96 mentioned this pull request Jun 17, 2020
4 tasks
This was referenced May 30, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automergeMerge the pull request once unit tests and other checks pass.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@lidizheng@software-dov@busunkim96@googlebot