Module: ChronoMachines
- Defined in:
- lib/chrono_machines.rb,
lib/chrono_machines/dsl.rb,
lib/chrono_machines/errors.rb,
lib/chrono_machines/version.rb,
lib/chrono_machines/executor.rb,
lib/chrono_machines/test_helper.rb,
lib/chrono_machines/async_support.rb,
lib/chrono_machines/configuration.rb
Defined Under Namespace
Modules: DSL, TestHelper
Classes: Configuration, Error, Executor, MaxRetriesExceededError
Constant Summary
collapse
- VERSION =
'0.2.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
22
23
24
|
# File 'lib/chrono_machines.rb', line 22
def self.config
@config
end
|
18
19
20
|
# File 'lib/chrono_machines.rb', line 18
def self.configure
yield @config
end
|
.retry(policy_name_or_options = {}) ⇒ Object
26
27
28
|
# File 'lib/chrono_machines.rb', line 26
def self.retry(policy_name_or_options = {}, &)
Executor.new(policy_name_or_options).call(&)
end
|