You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be done through a utility function. Doesn't seem people have made utility functions for themselves for this. If we just added it as a utility function, could be added to “StreamObservers” (and un-deprecate the class)
There's the option for Exception handling in the implementation - we don’t encourage try/catch around next in general, so not necessary for initial implementation
Shouldn’t name it “complete”; that's ambiguous - “onNextAndCompleted” seemed better
This is just added as syntactic sugar, users can use it if they want, but we don't need to encourage ti. We don't need to update the existing examples/docs to use it
Approved as experimental. @panchenko, feel free to send a PR to add StreamObserver.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: