lib/syncrony/lock.rb
# returns true if lock was still held at release, else false
returns true if lock was still held at release, else false
returns true if lock was still held at release else false
def release
      was_held = @held
      @refresh_task.cancel unless @refresh_task.nil?
      begin
        @client.delete(@path, prevValue: @identifer)
      rescue Etcd::TestFailed
        was_held = false
      end
      @held = false
      was_held
    end
def release was_held = @held @refresh_task . cancel unless @refresh_task . nil? begin @client . delete ( @path , prevValue : @identifer ) rescue Etcd :: TestFailed was_held = false end @held = false was_held end
returns true if lock was still held at release, else false
returns true if lock was still held at release else false