Skip to content

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

@hiranya911

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();
}

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