-
Notifications
You must be signed in to change notification settings - Fork 1.1k
FR: Expose GrpcForestoreRpc.close() via Firestore #2497
Copy link
Copy link
Closed
Labels
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
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();
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
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.