We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2065df0 commit 48b8f69Copy full SHA for 48b8f69
google/api_core/bidi.py
@@ -715,7 +715,11 @@ def start(self):
715
_LOGGER.debug("Started helper thread %s", thread.name)
716
717
def stop(self):
718
- """Stop consuming the stream and shutdown the background thread."""
+ """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
+ """
723
with self._operational_lock:
724
self._bidi_rpc.close()
725
0 commit comments