-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
New method StreamObserver.complete(value) for unary RPC #10957
Comments
Thanks for the suggestion. We're going to discuss it with the team at our next API Stabilization meeting. |
API review notes (2024-04-09 (?) and 2024-04-18)
|
Actually I am not sure about the "onNextAndCompleted" method name. The fact that StreamObserver is used on both sides make naming harder. The 'on" prefix is usually used in consumers, but this method is for producers. Potentially in the future stubs can be generated with a different type, and then method names could be more producer-specific 😄 I would suggest |
Will discuss in next week's API review meeting about nextAndCompleted proposed by the PR instead of the earlier agreed upon name onNextAndCompleted. |
I think unary RPCs are used quite often, then in the service implementation we have to write 2 lines:
It seems logical to introduce a default method:
WDYT?
The text was updated successfully, but these errors were encountered: