refactor(git_panel): use background_spawn
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user