Method: Etcdv3#unlock

Defined in:
lib/etcdv3.rb

#unlock(key, timeout: nil) ⇒ Object

Unlock distributed lock using the key previously obtained from lock. key - string optional :timeout - integer



116
117
118
# File 'lib/etcdv3.rb', line 116

def unlock(key, timeout: nil)
  @conn.handle(:lock, 'unlock', [key, {timeout: timeout}])
end