GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Documentation Issue] Pub/Sub non-blocking pull subscription option is wrong. · Issue #958 · googleapis/google-cloud-python Closed Labels api: pubsubIssues related to the Pub/Sub API. DescriptionPage Name: pubsub-usage The bottommost one. Fetch messages for a pull subscription without blocking (none pending):
>>> from gcloud.pubsub import Topic
>>> from gcloud.pubsub import Subscription
>>> topic = Topic('topic_name')
>>> subscription = Subscription('subscription_name', topic)
- >>> 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]
[]Activity
MetadataMetadataAssigneesLabelsapi: pubsubIssues related to the Pub/Sub API. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |