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

Method unwatch

crates/opencode-watcher/src/lib.rs:175–184  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

173 }
174
175 pub fn unwatch(&self, path: &Path) -> Result<(), WatcherError> {
176 self.watched_paths.remove(path);
177
178 if self.watched_paths.is_empty() {
179 *self.watcher.write() = None;
180 info!("Stopped all watchers");
181 }
182
183 Ok(())
184 }
185
186 pub fn stop(&self) {
187 self.watched_paths.clear();

Callers

nothing calls this directly

Calls 2

is_emptyMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected