forker.rb

Path: lib/spork/forker.rb
Last Update: Thu Nov 04 16:53:33 +0000 2010

A helper class that allows you to run a block inside of a fork, and then get the result from that block.

Example:

  forker = Spork::Forker.new do
    sleep 3
    "success"
  end

  forker.result # => "success"

[Validate]