// WatchStop stops a watch. func (c *Client) WatchStop(obj db.Entity) error { path, err := obj.Path() if err != nil { return err } return helpers.WatchStop(c, path, c.watchers, &c.watcherMutex) }
// WatchPrefixStop stops a watch. func (c *Client) WatchPrefixStop(obj db.Entity) error { return helpers.WatchStop(c, obj.Prefix(), c.watchers, &c.watcherMutex) }