aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/grpc/__init__.py
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 11:09:25 -0800
committerGravatar Mehrdad Afshari <mmx@google.com>2018-02-13 11:25:28 -0800
commitdb04c182897e2363a31bb9f49ecf821a703d9bd4 (patch)
treea7916c3ac0ef714899959faa6636461cd97a399a /src/python/grpcio/grpc/__init__.py
parent8b7baa07f4140838331adc287c3c172c802f22c7 (diff)
Clarify add_done_callback works on both success and failure
Diffstat (limited to 'src/python/grpcio/grpc/__init__.py')
-rw-r--r--src/python/grpcio/grpc/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/grpcio/grpc/__init__.py b/src/python/grpcio/grpc/__init__.py
index 79793a710e..7fa7303691 100644
--- a/src/python/grpcio/grpc/__init__.py
+++ b/src/python/grpcio/grpc/__init__.py
@@ -173,7 +173,8 @@ class Future(six.with_metaclass(abc.ABCMeta)):
"""Adds a function to be called at completion of the computation.
The callback will be passed this Future object describing the outcome
- of the computation.
+ of the computation. Callbacks will be invoked after the future is
+ terimated, whether successfully or not.
If the computation has already completed, the callback will be called
immediately.