MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / emit

Method emit

src/server/mod.rs:79–81  ·  view source on GitHub ↗

Route an event through the TUI channel when available, otherwise print directly.

(&self, event: ServerEvent)

Source from the content-addressed store, hash-verified

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>> {

Callers 2

runMethod · 0.45
graceful_shutdownMethod · 0.45

Calls 1

emit_or_printFunction · 0.85

Tested by

no test coverage detected