firebase / firebase/quickstart-java

Can't shutdown background threads [Firebase Admin SDK 4.1.5]

Open
#10 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
241
Forks
148
PR merge metrics
No merged PRs in 30d

Description

Running this on local machine with Java 8
` FirebaseOptions options = new FirebaseOptions.Builder()
.setCredential(FirebaseCredentials.applicationDefault())
.setDatabaseUrl("https://" + ServiceOptions.getDefaultProjectId() + ".firebaseio.com/")
.build();
`

`firebaseDatabase = FirebaseDatabase.getInstance(FirebaseApp.initializeApp(options));
final DatabaseReference entry = firebaseDatabase.getReference("somereference");
entry.setValue("data",(databaseError, databaseReference) -> System.out.println("ok"));`
How can i choose to use daemon threads? And if not, why don't you have a shutdown/close option?

I notice that entry.setValue("data") shutdowns threads normally.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.