Implemented exectution to Context
This commit is contained in:
@@ -83,7 +83,7 @@ impl Engine for Console {
|
||||
&self,
|
||||
component: F,
|
||||
) -> Arc<Context> {
|
||||
let cx = Context::new(component);
|
||||
let cx = Context::new(component, self.executor.clone());
|
||||
cx.refresh();
|
||||
|
||||
for thread in self.threads.lock().unwrap().iter() {
|
||||
|
||||
+1
-1
@@ -37,6 +37,6 @@ pub trait Command {
|
||||
fn as_any(&self) -> &dyn Any;
|
||||
}
|
||||
|
||||
pub trait CommandExecutor {
|
||||
pub trait CommandExecutor: Send + Sync {
|
||||
fn execute_command(&self, command: &Arc<dyn Command>) -> crate::Result<()>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user