def semaphore_state
      options = { decode_values: true, recurse: true }
      @state = Diplomat::Kv.get(prefix, options, :return)
      decode_semaphore_state unless state.empty?
      state
    end
def semaphore_state
      options = { decode_values: true, recurse: true }
      @state = Diplomat::Kv.get(prefix, options, :return)
      decode_semaphore_state unless state.empty?
      state
    end
def semaphore_state options = { decode_values : true , recurse : true } @state = Diplomat :: Kv . get ( prefix , options , :return ) decode_semaphore_state unless state . empty? state end
Get the current semaphore state by fetching all
 conterder keys and the lock key
Get the current semaphore state by fetching all conterder keys and the lock key