Stop will unsubscribe from the watcher.
()
| 988 | |
| 989 | // Stop will unsubscribe from the watcher. |
| 990 | func (w *watcher) Stop() error { |
| 991 | if w == nil { |
| 992 | return nil |
| 993 | } |
| 994 | return w.sub.Unsubscribe() |
| 995 | } |
| 996 | |
| 997 | // Error returns a channel that will receive any error that occurs during watching. |
| 998 | func (w *watcher) Error() <-chan error { |
nothing calls this directly
no test coverage detected