Skip to content

Commit

Permalink
Fixes non-blocking example in pub/sub usage doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Jul 2, 2015
1 parent 4ab3406 commit 661a157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pubsub-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Fetch messages for a pull subscription without blocking (none pending):
>>> client = pubsub.Client()
>>> topic = client.topic('topic_name')
>>> subscription = topic.subscription('subscription_name')
>>> received = subscription.pull(max_messages=1) # API request
>>> received = subscription.pull(return_immediately=True) # API request
>>> messages = [recv[1] for recv in received]
>>> [message.id for message in messages]
[]

0 comments on commit 661a157

Please sign in to comment.