refactor(git_panel): use background_spawn

This commit is contained in:
dino
2025-12-09 11:37:43 +00:00
parent a96b5ed8cc
commit cb8d423945

View File

@@ -2959,12 +2959,8 @@ impl GitPanel {
cx,
);
// TODO!: Why can't I use `cx.background_spawn` here?
return cx
.background_executor()
.spawn(async move {
result.await.ok();
})
.background_spawn(async move { result.await.ok() })
.detach();
}