From 8d65d8164957a286db89f4cf23c11bb25f83b959 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 --- samples/snippets/publisher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/snippets/publisher.py b/samples/snippets/publisher.py index 4304ddf91..cf12b2626 100644 --- a/samples/snippets/publisher.py +++ b/samples/snippets/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())