MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / RegisterUpdateHandler

Method RegisterUpdateHandler

pkg/wconfig/filewatcher.go:121–125  ·  view source on GitHub ↗
(handler ConfigUpdateHandler)

Source from the content-addressed store, hash-verified

119}
120
121func (w *Watcher) RegisterUpdateHandler(handler ConfigUpdateHandler) {
122 w.mutex.Lock()
123 defer w.mutex.Unlock()
124 w.handlers = append(w.handlers, handler)
125}
126
127func (w *Watcher) notifyHandlers(config FullConfigType) {
128 handlers := w.handlers

Callers 2

InitAIModeConfigWatcherFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected