Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[AsyncIO] Overview of gRPC AsyncIO integration #23

Copy link
Copy link
Closed
@lidizheng

Description

@lidizheng
Issue body actions

AsyncIO introduces async/await keywords. In order to plumb through the asynchronous-ness of functions, the library has to expose async functions on its surface. So, while integrating gRPC AsyncIO, we might need to instrument following classes in order to make gRPC AsyncIO work.

Also, since python-api-core supports all Python versions, we can't use any async/await in existing modules. If needed, the import of new AsyncIO modules will be protected by explicit version check.

A all-in-one draft PR can be found: #22.

  • google.api_core.async_future
  • google.api_core.gapic_v1.config_async
  • google.api_core.gapic_v1.method_async
  • google.api_core.operations_v1.operations_async_client
  • google.api_core.grpc_helpers_async
  • google.api_core.operation_async
  • google.api_core.retry_async

Unit tests included for all new modules under tests/asyncio.

For each module, I will create separate issues and PRs later.

Metadata

Metadata

Assignees

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.