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

mesh_channel: hide RPC response receiver from callers #449

Merged
merged 4 commits into from
Jan 9, 2025

Conversation

jstarks
Copy link
Member

@jstarks jstarks commented Dec 9, 2024

In the future, RPC channels will typically (always?) use blocking senders to provide backpressure and better support early cancellation.

To prepare for this, wrap the RPC response oneshot channel in a separate type which in the future can contain both a blocking send request and the response receiver.

Also, hide the internal fields of Rpc to give us flexibility there in the future, too.

@jstarks
Copy link
Member Author

jstarks commented Dec 9, 2024

I will probably hold this PR for a while to avoid merge conflicts with backport work going on.

smalis-msft
smalis-msft previously approved these changes Dec 13, 2024
In the future, RPC channels will typically (always?) use blocking
senders to provide backpressure and better support early cancellation.

To prepare for this, wrap the RPC response oneshot channel in a separate
type which in the future can contain both a blocking send request and
the response receiver.

Also, hide the internal fields of `Rpc` to give us flexibility there in
the future, too.
@jstarks jstarks marked this pull request as ready for review January 8, 2025 01:29
@jstarks jstarks requested review from a team as code owners January 8, 2025 01:29
smalis-msft
smalis-msft previously approved these changes Jan 8, 2025
@jstarks jstarks merged commit 4a4c584 into microsoft:main Jan 9, 2025
25 checks passed
@jstarks jstarks deleted the do_we_care branch January 9, 2025 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants