MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / subscribe

Method subscribe

crates/opencode-watcher/src/lib.rs:104–106  ·  view source on GitHub ↗

Subscribe to file watcher events

(&self)

Source from the content-addressed store, hash-verified

102
103 /// Subscribe to file watcher events
104 pub fn subscribe(&self) -> broadcast::Receiver<WatcherEvent> {
105 self.event_tx.subscribe()
106 }
107
108 /// Start watching a directory
109 pub fn watch(&self, path: &Path) -> Result<(), WatcherError> {

Callers 1

test_watch_directoryFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_watch_directoryFunction · 0.36