-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Add SubscriberClient.close() to examples #2959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates! I have always wondered why we have this method but never seem to use it anywhere. LGTM once all tests pass.
The close() method was only recently added. Perhaps you're thinking of something else? |
@pradn Is it not this one here? Ah, I see. I was thinking of this one: I think something is wrong with the code because tests are stuck. I can take a close look next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the tests.
except: # noqa | ||
streaming_pull_future.cancel() | ||
# Wrap subscriber in a 'with' block to automatically call close() when done. | ||
with subscriber: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be with client
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The library version looks outdated in requirements.txt
.
@pradn This branch has conflicts that must be resolved. I'm closing your PR and will work on a new one. |
No description provided.