Sha256: 384c97eadb8d189b28bd83c9808bc814f3e104edfe9bbfd809ddb1c44e27909e
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' puts "parent pid: #{Process.pid}" pid = Polyphony.fork do puts "child pid: #{Process.pid}" spin do puts "child going to sleep 1..." sleep 1 puts "child woke up 1" end end puts "got child pid #{pid}" puts "waiting for child" EV::Child.new(pid).await puts "child is done"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyphony-0.19 | examples/core/fork.rb |