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

Method sender

crates/opencode-tui/src/event.rs:69–71  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

67 }
68
69 pub fn sender(&self) -> std::sync::mpsc::Sender<Event> {
70 self.tx.clone()
71 }
72
73 pub fn send(&self, event: Event) {
74 let _ = self.tx.send(event);

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected