lib/syncrony/election.rb
# Stop being leader, or stop trying to become leader.
Stop being leader, or stop trying to become leader.
Stop being leader or stop trying to become leader .
def cancel
      @observer.cancel if @observer
      if @is_leader
        @timer.cancel
        @is_leader = false
        @client.delete(@path)
      end
      return
    end
def cancel @observer . cancel if @observer if @is_leader @timer . cancel @is_leader = false @client . delete ( @path ) end return end
Stop being leader, or stop trying to become leader.
Stop being leader or stop trying to become leader .