Skip to content

[Documentation Issue] Pub/Sub non-blocking pull subscription option is wrong. #958

Closed

Description

@thara

Page Name: pubsub-usage
Release: 0.6.0

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

  1. dhermes commented on Jul 2, 2015

    @dhermes
    Contributor

    Thanks @tomochikahara

    Copy-pasta strikes again!

  2. added a commit that references this issue on Jul 2, 2015
    1ac8e8c
  3. added a commit that references this issue on Jul 2, 2015
    661a157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions