GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Documentation Issue] Pub/Sub non-blocking pull subscription option is wrong. · Issue #958 · googleapis/google-cloud-python

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

New issue
Copy link
New issue
Copy link
Closed
Closed
[Documentation Issue] Pub/Sub non-blocking pull subscription option is wrong.#958
Copy link
Assignees
dhermes
Labels
api: pubsubIssues related to the Pub/Sub API.

Description

@thara
thara
opened on Jul 2, 2015
Issue body actions

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
    dhermes
    on Jul 2, 2015
    Contributor
    More actions

    Thanks @tomochikahara

    Copy-pasta strikes again!

  2. dhermes
    added a commit that references this issue on Jul 2, 2015

    Fixes non-blocking example in pub/sub usage doc.

    This issue will close once commit 1ac8e8c is merged into the 'master' branch.
    1ac8e8c
  3. dhermes
    added
    docs
    api: pubsubIssues related to the Pub/Sub API.
    on Jul 2, 2015
  4. dhermes
    added a commit that references this issue on Jul 2, 2015

    Fixes non-blocking example in pub/sub usage doc.

    This issue will close once commit 661a157 is merged into the 'master' branch.
    661a157
  5. dhermes
    closed this as completedin #959on Jul 2, 2015
  6. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  7. parthea
    added 2 commits that reference this issue on Sep 22, 2023

    docs: add samples from video/cloud-client/shotchange (#72)

    0ed386e

    feat!: use microgenerator (#76)

    32ef47f
  8. parthea
    added 5 commits that reference this issue on Nov 24, 2025

    fix: enable self signed jwt for grpc (#958)

    bcea265

    fix: Made `write_entries` raise `ValueError` on `ParseError`s (#958)

    6cb64be

    fix: Remove uses of six. #913 (#958)

    ae16c17

    fix: Made `write_entries` raise `ValueError` on `ParseError`s (#958)

    f00a2cd

    fix: Add AWS session token to metadata requests (#958)

    83d0ace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

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

    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.