StopWatcher stops the running K8s watcher if any.
()
| 79 | |
| 80 | // StopWatcher stops the running K8s watcher if any. |
| 81 | func (cli *ChatCLI) StopWatcher() { |
| 82 | if cli.watcherCancel != nil { |
| 83 | cli.watcherCancel() |
| 84 | cli.watcherCancel = nil |
| 85 | } |
| 86 | cli.WatcherContextFunc = nil |
| 87 | cli.SetWatching(false, nil) |
| 88 | } |
no test coverage detected