Module: Holistic::BackgroundProcess

Extended by:
BackgroundProcess
Included in:
BackgroundProcess
Defined in:
lib/holistic/background_process.rb

Instance Method Summary collapse

Instance Method Details

#run(&block) ⇒ Object



6
7
8
9
10
# File 'lib/holistic/background_process.rb', line 6

def run(&block)
  ::Thread.new(&block).tap do |thread|
    thread.abort_on_exception = true
  end
end