Skip to content
Permalink
Browse files
docs: document potentially unexpected blocking behavior of publish() …
…method (#214)

* docs: Document potentially unexpected blocking behavior of publish() method.

* Update google/cloud/pubsub_v1/publisher/client.py

Co-authored-by: Tres Seaver <tseaver@palladion.com>
Co-authored-by: Prad Nelluru <pradn@google.com>
  • Loading branch information
3 people committed Nov 10, 2020
1 parent 09a409c commit b6d9bd7c38d4fe597c25b7b5869fd4a1259c7687
Showing with 2 additions and 0 deletions.
  1. +2 −0 google/cloud/pubsub_v1/publisher/client.py
@@ -291,6 +291,8 @@ def publish(
Add the given message to this object; this will cause it to be
published once the batch either has enough messages or a sufficient
period of time has elapsed.
This method may block if LimitExceededBehavior.BLOCK is used in the
flow control settings.
Example:
>>> from google.cloud import pubsub_v1

0 comments on commit b6d9bd7

Please sign in to comment.