Start work on connecting to RPC endpoint

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Max Brunsfeld
2021-06-10 22:12:04 -07:00
co-authored by Antonio Scandurra
parent e897d1c98e
commit 20542f54ef
9 changed files with 1118 additions and 90 deletions
+5 -1
View File
@@ -2,7 +2,7 @@ use crate::{
elements::ElementBox,
executor,
keymap::{self, Keystroke},
platform::{self, PromptLevel, WindowOptions},
platform::{self, Platform, PromptLevel, WindowOptions},
presenter::Presenter,
util::{post_inc, timeout},
AssetCache, AssetSource, ClipboardItem, FontCache, PathPromptOptions, TextLayoutCache,
@@ -412,6 +412,10 @@ impl AsyncAppContext {
self.update(|cx| cx.add_model(build_model))
}
pub fn platform(&self) -> Arc<dyn Platform> {
self.0.borrow().platform()
}
pub fn background_executor(&self) -> Arc<executor::Background> {
self.0.borrow().cx.background.clone()
}