grpc / grpc-java

The Java gRPC implementation. HTTP/2 based RPC
https://grpc.io/docs/languages/java/
Apache License 2.0
11.48k stars 3.85k forks source link

api: When forwarding from Listener onAddresses to Listener2 continue to use onResult (v1.68.x backport) #11688

Closed kannanjgithub closed 1 week ago

kannanjgithub commented 1 week ago

Backport of #11666 to v1.68.x.

When forwarding from Listener onAddresses to Listener2 continue to use onResult and not onResult2 because the latter requires to be called from within synchronization context and it breaks existing code that didn't need to do so when using the old Listener interface

Fixed #11662.