Skip to content

Make Storage Interface Extend Autocloseable  #294

@mikail-khan

Description

@mikail-khan

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

No one assigned

    Labels

    api: storageIssues related to the googleapis/java-storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions