Skip to content

Commit bd92f8b

Browse files
Jon Wayne Parrottplamut
authored andcommitted
Add comment about result blocking in pubsub samples
Change-Id: I149fc1242ceb6b2cff8eae7ef18b364dd5c26566
1 parent 1343f98 commit bd92f8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/snippets/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)