MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-tui/src/event.rs:64–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63impl EventBus {
64 pub fn new() -> Self {
65 let (tx, _rx) = std::sync::mpsc::channel();
66 Self { tx }
67 }
68
69 pub fn sender(&self) -> std::sync::mpsc::Sender<Event> {
70 self.tx.clone()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected