-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
The Firestore interface extends the Autocloseable interface and thereby offers a close method which can be called to guarantee resource clean up. The Storage interface does not extend Autocloseable.
I would like the Storage interface to extend Autocloseable so that a close method is provided. This will allow me to write conciser code in my Scala library I am building which wraps java-storage.
For now I can use the traditional try-with-resources idiom. But it would be great if the GCP Java APIs are consistent where they can be and is reasonable to do so.
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.