Stop will unsubscribe from the watcher.
()
| 1055 | |
| 1056 | // Stop will unsubscribe from the watcher. |
| 1057 | func (w *objWatcher) Stop() error { |
| 1058 | if w == nil { |
| 1059 | return nil |
| 1060 | } |
| 1061 | return w.sub.Unsubscribe() |
| 1062 | } |
| 1063 | |
| 1064 | // Watch for changes in the underlying store and receive meta information updates. |
| 1065 | func (obs *obs) Watch(opts ...WatchOpt) (ObjectWatcher, error) { |
nothing calls this directly
no test coverage detected