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

Method stop

crates/opencode-watcher/src/lib.rs:186–190  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

184 }
185
186 pub fn stop(&self) {
187 self.watched_paths.clear();
188 *self.watcher.write() = None;
189 info!("Stopped all file watchers");
190 }
191
192 pub fn watched_paths(&self) -> Vec<PathBuf> {
193 self.watched_paths.iter().map(|p| p.clone()).collect()

Callers 1

dropMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected