Route an event through the TUI channel when available, otherwise print directly.
(&self, event: ServerEvent)
| 77 | |
| 78 | /// Route an event through the TUI channel when available, otherwise print directly. |
| 79 | fn emit(&self, event: ServerEvent) { |
| 80 | crate::tui::events::emit_or_print(&self.event_sender, event); |
| 81 | } |
| 82 | |
| 83 | /// Start the server and process tasks |
| 84 | pub async fn run(&self) -> Result<(), Box<dyn std::error::Error + Send + Sync>> { |
no test coverage detected