forker.rb

Path: lib/spork/forker.rb
Last Update: Thu Oct 08 10:55:04 -0600 2009

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]