lib/zookeeper/connection_pool.rb
#prefer this method if you can (keeps connection checked out)
prefer this method if you can (keeps connection checked out)
prefer this method if you can ( keeps connection checked out )
def with_lock(path, &block)
      checkout do |connection|
        connection.locker(path).with_lock(&block)
      end
    end
def with_lock ( path , & block ) checkout do | connection | connection . locker ( path ) . with_lock ( & block ) end end
prefer this method if you can (keeps connection checked out)
prefer this method if you can ( keeps connection checked out )
path
block