Class: Bootsnap::CLI::WorkerPool::Inline

Inherits:
Object
  • Object
show all
Defined in:
lib/bootsnap/cli/worker_pool.rb

Instance Method Summary collapse

Constructor Details

#initialize(jobs: {}) ⇒ Inline

Returns a new instance of Inline.



89
90
91
# File 'lib/bootsnap/cli/worker_pool.rb', line 89

def initialize(jobs: {})
  @jobs = jobs
end

Instance Method Details

#push(job, *args) ⇒ Object



93
94
95
96
# File 'lib/bootsnap/cli/worker_pool.rb', line 93

def push(job, *args)
  @jobs.fetch(job).call(*args)
  nil
end

#shutdownObject



102
103
104
# File 'lib/bootsnap/cli/worker_pool.rb', line 102

def shutdown
  # noop
end

#spawnObject



98
99
100
# File 'lib/bootsnap/cli/worker_pool.rb', line 98

def spawn
  # noop
end