Skip to content

Pubsub API should provide a way to synchronize a set of operations #4913

Closed

Description

@gcbirzan

The pubsub API provides no easy way to make sure a bunch of publishes finish before continuing. You have to either deal with batches yourself or wait on every Future returned. A context manager would do the job, or even a wait method on the client.

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: pubsubIssues related to the Pub/Sub API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Feb 22, 2018
  2. theacodes commented on Feb 22, 2018

    @theacodes
    Contributor

    @lukesneeringer what do you think?

  3. lukesneeringer commented on Feb 22, 2018

    @lukesneeringer
    Contributor

    Seems reasonable to me. asyncio does have a mechanism to wait on multiple futures but that does not help anyone on earlier versions of Python.

  4. self-assigned this
    on Feb 25, 2018
  5. removed
    🚨This issue needs some love.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Sep 12, 2018
  6. sduskis commented on May 15, 2019

    @sduskis
    Contributor

    @theacodes, do you think this is still a GA blocking issue?

  7. self-assigned this
    on Sep 28, 2019
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: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions