Start work on connecting to RPC endpoint
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
co-authored by
Antonio Scandurra
parent
e897d1c98e
commit
20542f54ef
+5
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user