Skip to content

Commit 48b8f69

Browse files
committed
Update bidi.py
1 parent 2065df0 commit 48b8f69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

google/api_core/bidi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,11 @@ def start(self):
715715
_LOGGER.debug("Started helper thread %s", thread.name)
716716

717717
def stop(self):
718-
"""Stop consuming the stream and shutdown the background thread."""
718+
"""Stop consuming the stream and shutdown the background thread.
719+
720+
WARNING: Cannot be called within `_thread_main`, since it is not
721+
possible to join a thread to itself.
722+
"""
719723
with self._operational_lock:
720724
self._bidi_rpc.close()
721725

0 commit comments

Comments
 (0)