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,
sig/chrono_machines.rbs
Defined Under Namespace
Modules: DSL, TestHelper
Classes: Configuration, Error, Executor, MaxRetriesExceededError
Constant Summary
collapse
- VERSION =
'0.5.2'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
23
24
25
|
# File 'lib/chrono_machines.rb', line 23
def self.config
@config
end
|
19
20
21
|
# File 'lib/chrono_machines.rb', line 19
def self.configure
yield @config
end
|
.retry(policy_name_or_options = {}) ⇒ Object
27
28
29
|
# File 'lib/chrono_machines.rb', line 27
def self.retry(policy_name_or_options = {}, &)
Executor.new(policy_name_or_options).call(&)
end
|