Class: Async::Runnner::Strategy::Thread

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



47
48
49
# File 'lib/async/runner.rb', line 47

def join
  @thread.join
end

#run!Object



43
44
45
# File 'lib/async/runner.rb', line 43

def run!
  @thread = Thread.new(@block)
end