Method: Deimos::Utils::Executor#initialize
- Defined in:
- lib/deimos/utils/executor.rb
#initialize(runners, sleep_seconds: nil, logger: Logger.new(STDOUT)) ⇒ Executor
started or stopped. failed runs instead of using an exponential backoff.
18 19 20 21 22 23 |
# File 'lib/deimos/utils/executor.rb', line 18 def initialize(runners, sleep_seconds: nil, logger: Logger.new(STDOUT)) @threads = Concurrent::Array.new @runners = runners @logger = logger @sleep_seconds = sleep_seconds end |