From 254438b843a3ca065b1547026d4df49cba383b0f Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Mon, 28 Aug 2017 15:28:13 -0700 Subject: [PATCH] Add comment about result blocking in pubsub samples Change-Id: I149fc1242ceb6b2cff8eae7ef18b364dd5c26566 --- pubsub/cloud-client/publisher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pubsub/cloud-client/publisher.py b/pubsub/cloud-client/publisher.py index 4304ddf912b0..cf12b2626b4f 100644 --- a/pubsub/cloud-client/publisher.py +++ b/pubsub/cloud-client/publisher.py @@ -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())