Skip to content

Commit

Permalink
Add comment about result blocking in pubsub samples
Browse files Browse the repository at this point in the history
Change-Id: I149fc1242ceb6b2cff8eae7ef18b364dd5c26566
  • Loading branch information
Jon Wayne Parrott authored and plamut committed Jul 10, 2020
1 parent 4edb0cd commit f82e7e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/snippets/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def publish_messages_with_futures(project, topic_name):

print('Published message IDs:')
for future in futures:
# result() blocks until the message is published.
print(future.result())


Expand Down

0 comments on commit f82e7e1

Please sign in to comment.