firebase / firebase/quickstart-java

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

未關閉
#10 2 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
241
分支
148
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。