project: Spawn terminal process on background executor (#40774)
We were spawning the process on the foreground thread before which can block an arbitrary amount of time. Likewise we no longer block deserialization on the terminal loading. Release Notes: - Improved startup time on systems with slow process spawning capabilities
This commit is contained in:
@@ -762,11 +762,11 @@ impl Item for Editor {
|
||||
_workspace_id: Option<WorkspaceId>,
|
||||
window: &mut Window,
|
||||
cx: &mut Context<Self>,
|
||||
) -> Option<Entity<Editor>>
|
||||
) -> Task<Option<Entity<Editor>>>
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
Some(cx.new(|cx| self.clone(window, cx)))
|
||||
Task::ready(Some(cx.new(|cx| self.clone(window, cx))))
|
||||
}
|
||||
|
||||
fn set_nav_history(
|
||||
|
||||
Reference in New Issue
Block a user