MCPcopy
hub / github.com/nats-io/nats.go / Stop

Method Stop

kv.go:990–995  ·  view source on GitHub ↗

Stop will unsubscribe from the watcher.

()

Source from the content-addressed store, hash-verified

988
989// Stop will unsubscribe from the watcher.
990func (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.
998func (w *watcher) Error() <-chan error {

Callers

nothing calls this directly

Calls 1

UnsubscribeMethod · 0.80

Tested by

no test coverage detected