Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pubsub): add stop method #9365

Merged
merged 15 commits into from
Nov 7, 2019
Prev Previous commit
Next Next commit
Fix comment.
  • Loading branch information
IlyaFaer committed Oct 25, 2019
commit 3216d849da9a0461c71f2a338cc142eda950ab1a
2 changes: 1 addition & 1 deletion pubsub/google/cloud/pubsub_v1/publisher/client.py
Original file line number Diff line number Diff line change
@@ -295,7 +295,7 @@ def stop(self):

This method is non-blocking. Use `Future()` objects
returned by `publish()` to make sure all messages
sent or failed to.
sent or failed.
"""
if self._is_stopped:
raise ValueError("Cannot stop a publisher already stopped.")