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

Add missing 'Sendable' conformance #1404

Merged
merged 1 commit into from
May 12, 2022

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented May 11, 2022

Motivation:

Sendable conformance was missing in a handful of places which generates
warnings in newer toolchains.

Modifications:

  • Make client calls Sendable
  • Client call wrappers should require Sendable types (this was
    implicitly enfored by calls requiring request and response types to be
    Sendable). This also requires the async sequence of requests to be
    Sendable for calls where requests are streamed which required a
    codegen change.
  • Make the various gRPC async sequence types conditionally Sendable

Result:

Fewer warnings

Motivation:

Sendable conformance was missing in a handful of places which generates
warnings in newer toolchains.

Modifications:

- Make client calls Sendable
- Client call wrappers should require Sendable types (this was
  implicitly enfored by calls requiring request and response types to be
  Sendable). This also requires the async sequence of requests to be
  Sendable for calls where requests are streamed which required a
  codegen change.
- Make the various gRPC async sequence types conditionally Sendable

Result:

Fewer warnings
@glbrntt glbrntt force-pushed the gb-sendable-fixes branch from 235c68f to 59b0839 Compare May 11, 2022 17:04
@glbrntt glbrntt merged commit 9539d94 into grpc:1.7.1-async-await May 12, 2022
@glbrntt glbrntt deleted the gb-sendable-fixes branch May 12, 2022 10:38
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants