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 committed Aug 28, 2017
1 parent 29682fb commit 254438b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pubsub/cloud-client/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 254438b

Please sign in to comment.