Return a future from WorkspaceView::open_paths

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-04-29 14:55:28 -07:00
co-authored by Nathan Sobo
parent b126938af7
commit 5826a976ef
3 changed files with 130 additions and 70 deletions
+4
View File
@@ -1717,6 +1717,10 @@ impl<'a, T: View> ViewContext<'a, T> {
self.window_id
}
pub fn foreground(&self) -> &Rc<executor::Foreground> {
self.app.foreground_executor()
}
pub fn background_executor(&self) -> &Arc<executor::Background> {
&self.app.ctx.background
}