Sha256: 4ab7854e2f2827472aa57da25856bf495081ed8d51028a25fc95e5c92e1d885d

Contents?: true

Size: 300 Bytes

Versions: 4

Compression:

Stored size: 300 Bytes

Contents

# forkoff supports two strategies of reading the result from the child: via
# pipe (the default) or via file.  you can select which to use using the
# :strategy option.
#

  require 'forkoff'

  %w( hey you guys ).forkoff :strategy => :file do |word|
    puts "#{ word } from #{ Process.pid }"
  end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
forkoff-1.2.0 samples/d.rb
forkoff-1.1.1 samples/d.rb
forkoff-1.1.0 samples/d.rb
forkoff-0.0.4 samples/d.rb