Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Oct 13, 2023
1 parent 7ec7832 commit c7f63bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google/api_core/bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ def add_done_callback(self, callback):
self._callbacks.append(callback)

def _on_call_done(self, future):
# Note that grpc's "future" here is also a grpc.RpcError.
# `grpc.RpcError` is also `grpc.call` based on
# https://github.com/grpc/grpc/issues/10885#issuecomment-302651331
for callback in self._callbacks:
callback(future)

Expand Down

0 comments on commit c7f63bd

Please sign in to comment.