MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / Stop

Method Stop

internal/prd/watcher.go:75–86  ·  view source on GitHub ↗

Stop stops watching the PRD file.

()

Source from the content-addressed store, hash-verified

73
74// Stop stops watching the PRD file.
75func (w *Watcher) Stop() {
76 w.mu.Lock()
77 if !w.running {
78 w.mu.Unlock()
79 return
80 }
81 w.running = false
82 w.mu.Unlock()
83
84 close(w.done)
85 w.watcher.Close()
86}
87
88// Events returns the channel for receiving PRD change events.
89func (w *Watcher) Events() <-chan WatcherEvent {

Callers 6

TestNewWatcherFunction · 0.95
TestWatcherStartFunction · 0.95
TestWatcherStopFunction · 0.95

Calls

no outgoing calls

Tested by 6

TestNewWatcherFunction · 0.76
TestWatcherStartFunction · 0.76
TestWatcherStopFunction · 0.76