GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Feature Request: allow clients to act as context manager and add close() method to cleanup resources · Issue #575 · googleapis/gapic-generator-python
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Feature Request: allow clients to act as context manager and add close() method to cleanup resources #575Copy link Copy link Closed Labels generatorBugs, features, and so forth pertaining to the generated client surfacepriority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design. DescriptionSince a Proposed design: Add the following two ways to explicitly clean-up sockets owned by the client: (1, preferred) allow clients to act as a context manager and (2) a close() method.
Example: from google.cloud import bigquery_datatransfer_v1 with bigquery_datatransfer_v1.DataTransferServiceClient() as client: print(client.get_transfer_run('some run id').state)
from google.cloud import bigquery_datatransfer_v1 client = bigquery_datatransfer_v1.DataTransferServiceClient() print(client.get_transfer_run('some run id').state) client.close() # clean up any open sockets References:
Reacted by Aarni Koskela Activity
MetadataMetadataAssigneesLabelsgeneratorBugs, features, and so forth pertaining to the generated client surfacepriority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design. TypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |