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

[DRAFT] chore: use cross sync for async methods #991

Closed
wants to merge 176 commits into from

Conversation

daniel-sanche
Copy link
Contributor

@daniel-sanche daniel-sanche commented Jul 12, 2024

WIP - Adding polish - Not ready for review

PR 1/3 for adding the sync surface for the new data client

This PR restructures the existing async library to better support the sync side. Specifically, all async-specific calls and types are replaced with corresponding calls to the new CrossSync class, which simply contains a set of aliases pointing back at the corresponding async functionality

While reviewing this PR, focus on the readability of the async code.

In a future PRs, we will introduce a corresponding synchronous implementation of CrossSync, and a code generator that produces sync code from this async copy.


TODO:

  • add tests for new CrossSync functions
  • add CrossSync Readme

@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: bigtable Issues related to the googleapis/python-bigtable API. labels Jul 12, 2024
@daniel-sanche daniel-sanche changed the title [DRAFT] feat: use cross sync for async methods [DRAFT] chore: use cross sync for async methods Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant