MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / close

Method close

watch_manager.go:534–546  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

532}
533
534func (wm *watchManager) close() error {
535 wm.muClosed.Lock()
536 defer wm.muClosed.Unlock()
537
538 if wm.closed {
539 return ErrWatchManagerClosed
540 }
541
542 wm.workerCancel()
543 wm.closed = true
544
545 return nil
546}
547
548func (wm *watchManager) findSubscriber(bucketName core.BucketName, key string, id uint64) (*subscriber, error) {
549 if _, ok := wm.lookup[bucketName]; !ok {

Callers 9

StopMethod · 0.95
releaseMethod · 0.45
runNutsDBTestWithWatchFunction · 0.45
TestDB_WatchFunction · 0.45

Calls

no outgoing calls