Procházet zdrojové kódy

Add comment about timeout argument

Richard Belleville před 5 roky
rodič
revize
9b24faf188
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      src/python/grpcio/grpc/_channel.py

+ 9 - 0
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
         This method will never block. Instead, it will raise an exception
         if calling this method would otherwise result in blocking.
         if calling this method would otherwise result in blocking.
+
+        Since this method will never block, any `timeout` argument passed will
+        be ignored.
         """
         """
         del timeout
         del timeout
         with self._state.condition:
         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
         This method will never block. Instead, it will raise an exception
         if calling this method would otherwise result in blocking.
         if calling this method would otherwise result in blocking.
+
+        Since this method will never block, any `timeout` argument passed will
+        be ignored.
         """
         """
         del timeout
         del timeout
         with self._state.condition:
         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
         This method will never block. Instead, it will raise an exception
         if calling this method would otherwise result in blocking.
         if calling this method would otherwise result in blocking.
+
+        Since this method will never block, any `timeout` argument passed will
+        be ignored.
         """
         """
         del timeout
         del timeout
         with self._state.condition:
         with self._state.condition: