Skip to content

Add documentation for close, and context manager for SubscriberClient #238

@alonme

Description

@alonme

The code examples in googleapis.dev do not close the SubscriberClient, and the context manager for this class is not mentioned anywhere, opposed to documenatation in https://cloud.google.com/pubsub/docs/pull .

Not closing the client results in a resource leak, so i think it should be clear from the documentation.

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions