Method: Faulty.circuit

Defined in:
lib/faulty.rb

.circuit(name, **config) {|Circuit::Options| ... } ⇒ Circuit

Get or create a circuit for the default instance

Parameters:

Yields:

Returns:

  • (Circuit)

    The new circuit or the existing circuit if it already exists

Raises:

  • UninitializedError If the default instance has not been created


111
112
113
# File 'lib/faulty.rb', line 111

def circuit(name, **config, &block)
  default.circuit(name, **config, &block)
end