Stop stopps the watcher
()
| 94 | |
| 95 | // Stop stopps the watcher |
| 96 | func (w *watcher) Stop() { |
| 97 | w.closeOnce.Do(func() { |
| 98 | close(w.interrupt) |
| 99 | }) |
| 100 | } |
| 101 | |
| 102 | // Update updates the filemap and returns if there was a change |
| 103 | func (w *watcher) Update() ([]string, []string, error) { |