That's exactly I do in my code. Hope it could be provided in `grpcio` package. Java gRPC provides a class `SimpleForwardingClientCall`, which makes things much simpler.
On Tuesday, June 9, 2020 at 1:09:58 AM UTC+8, Lidi Zheng wrote: > > One example of how to implement the grpc.Call interface is to composite > the original returned object (_Rendezvous) to a new class with the logic > you want to add: > https://github.com/googleads/google-ads-python/blob/ab71f5286e66b402125eafa5dd9db4f4c37b4806/google/ads/google_ads/interceptors/exception_interceptor.py#L29 > > On Mon, Jun 8, 2020 at 12:17 AM <[email protected] <javascript:>> wrote: > >> Also, `grpc._channel._Rendezvous` is a private class. It makes me nervous >> to inherit. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "grpc.io" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/grpc-io/bf23e779-3219-448f-9d90-e7cae112e957o%40googlegroups.com >> >> <https://groups.google.com/d/msgid/grpc-io/bf23e779-3219-448f-9d90-e7cae112e957o%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4739dff0-06ab-4a4c-9e01-c5971f0af8ceo%40googlegroups.com.
