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

Method Stop

object.go:1057–1062  ·  view source on GitHub ↗

Stop will unsubscribe from the watcher.

()

Source from the content-addressed store, hash-verified

1055
1056// Stop will unsubscribe from the watcher.
1057func (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.
1065func (obs *obs) Watch(opts ...WatchOpt) (ObjectWatcher, error) {

Callers

nothing calls this directly

Calls 1

UnsubscribeMethod · 0.80

Tested by

no test coverage detected