Skip to content

FR: Expose GrpcForestoreRpc.close() via Firestore #2497

Description

@hiranya911

GrpcForestoreRpc class has a close() method, which cleans up any allocated resources (client stubs, threads pools etc) and terminates the client. This should be exposed via Firestore interface so the users can gracefully terminate the client. For example:

Firestore fs;
try {
  fs = initMyFirestore();
  // Do stuff with fs
} finally {
  // On application shutdown or at any other suitable lifecycle handler
  fs.close();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

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