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.



17
18
19
# File 'lib/bootsnap/cli/worker_pool.rb', line 17

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

Instance Method Details

#push(job, *args) ⇒ Object



21
22
23
24
# File 'lib/bootsnap/cli/worker_pool.rb', line 21

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

#shutdownObject



30
31
32
# File 'lib/bootsnap/cli/worker_pool.rb', line 30

def shutdown
  # noop
end

#spawnObject



26
27
28
# File 'lib/bootsnap/cli/worker_pool.rb', line 26

def spawn
  # noop
end