From 9b24faf188cc6d450cf4629f35ac0b38ee74fc90 Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Fri, 23 Oct 2020 16:01:19 -0700 Subject: [PATCH] Add comment about timeout argument --- src/python/grpcio/grpc/_channel.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/python/grpcio/grpc/_channel.py b/src/python/grpcio/grpc/_channel.py index 9f434e8e724..11921d78838 100644 --- a/src/python/grpcio/grpc/_channel.py +++ b/src/python/grpcio/grpc/_channel.py @@ -476,6 +476,9 @@ class _SingleThreadedRendezvous(_Rendezvous, grpc.Call, grpc.Future): # pylint: This method will never block. Instead, it will raise an exception if calling this method would otherwise result in blocking. + + Since this method will never block, any `timeout` argument passed will + be ignored. """ del timeout with self._state.condition: @@ -495,6 +498,9 @@ class _SingleThreadedRendezvous(_Rendezvous, grpc.Call, grpc.Future): # pylint: This method will never block. Instead, it will raise an exception if calling this method would otherwise result in blocking. + + Since this method will never block, any `timeout` argument passed will + be ignored. """ del timeout with self._state.condition: @@ -514,6 +520,9 @@ class _SingleThreadedRendezvous(_Rendezvous, grpc.Call, grpc.Future): # pylint: This method will never block. Instead, it will raise an exception if calling this method would otherwise result in blocking. + + Since this method will never block, any `timeout` argument passed will + be ignored. """ del timeout with self._state.condition: