class Semian::CircuitBreaker

def transition_to_half_open?

def transition_to_half_open?
  open? && error_timeout_expired? && !half_open?
end