Clarify add_done_callback works on both success and failure

pull/14417/head
Mehrdad Afshari 7 years ago
parent 8b7baa07f4
commit db04c18289
  1. 3
      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.

Loading…
Cancel
Save