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 摘要。