Skip to content

Commit 254438b

Browse files
author
Jon Wayne Parrott
committed
Add comment about result blocking in pubsub samples
Change-Id: I149fc1242ceb6b2cff8eae7ef18b364dd5c26566
1 parent 29682fb commit 254438b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pubsub/cloud-client/publisher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def publish_messages_with_futures(project, topic_name):
8888

8989
print('Published message IDs:')
9090
for future in futures:
91+
# result() blocks until the message is published.
9192
print(future.result())
9293

9394

0 commit comments

Comments
 (0)