Return a future from WorkspaceView::open_paths
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
b126938af7
commit
5826a976ef
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user