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 'with-' methods for client and server #2121

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 18, 2024

Motivation:

In some situations, like examples, testing, and prototyping, it can be useful to have a client and server with scoped lifetimes. This is all achievable using task groups but in a number of situations having helpers is also useful.

Modifications:

  • Add 'with-' methods for client and server
  • Update docs

Result:

Easier to use API for some scenarios.

Motivation:

In some situations, like examples, testing, and prototyping,  it can be
useful to have a client and server with scoped lifetimes. This is all
achievable using task groups but in a number of situations having
helpers is also useful.

Modifications:

- Add 'with-' methods for client and server
- Update docs

Result:

Easier to use API for some scenarios.
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Nov 18, 2024
@glbrntt glbrntt requested a review from FranzBusch November 18, 2024 14:33
@glbrntt glbrntt enabled auto-merge (squash) November 21, 2024 09:11
@glbrntt glbrntt requested a review from FranzBusch November 21, 2024 09:11
@glbrntt glbrntt merged commit 3b0fe70 into grpc:main Nov 21, 2024
43 of 45 checks passed
@glbrntt glbrntt deleted the v2/with-client-server branch November 21, 2024 13:12
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