Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 b6d9bd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions google/cloud/pubsub_v1/publisher/client.py
Expand Up @@ -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
Expand Down

0 comments on commit b6d9bd7

Please sign in to comment.