Module: Harmoniser::Launcher

Defined in:
lib/harmoniser/launcher.rb,
lib/harmoniser/launcher/base.rb,
lib/harmoniser/launcher/bounded.rb,
lib/harmoniser/launcher/unbounded.rb

Defined Under Namespace

Classes: Base, Bounded, UnBounded

Class Method Summary collapse

Class Method Details

.call(configuration:, logger:) ⇒ Object



7
8
9
10
11
# File 'lib/harmoniser/launcher.rb', line 7

def call(configuration:, logger:)
  return Bounded.new(configuration:, logger:) unless configuration.options.unbounded_concurrency?

  UnBounded.new(configuration:, logger:)
end