Class | Spork::Forker |
In: |
lib/spork/forker.rb
|
Parent: | Object |
A helper class that allows you to run a block inside of a fork, and then get the result from that block.
forker = Spork::Forker.new do sleep 3 "success" end forker.result # => "success"
Wait for the fork to finish running, and then return its return value.
If the fork was aborted, then result returns nil.