Class: Async::Runnner::Strategy::Fork

Inherits:
Base
  • Object
show all
Defined in:
lib/async/runner.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, spawn

Constructor Details

This class inherits a constructor from Async::Runnner::Strategy::Base

Instance Method Details

#joinObject



57
58
59
# File 'lib/async/runner.rb', line 57

def join
  Process.wait @pid
end

#run!Object



53
54
55
# File 'lib/async/runner.rb', line 53

def run!
  @pid = fork(@block)
end