Sha256: a89a542471a2f9c7e526948ef907f9d3afaa6f9ef908d4a3aba6b72a65fcd39c
Contents?: true
Size: 388 Bytes
Versions: 70
Compression:
Stored size: 388 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' puts "parent pid: #{Process.pid}" pid = fork do puts "child pid: #{Process.pid}" spin do puts 'child going to sleep 1...' sleep 1 puts 'child woke up 1' end suspend end puts "got child pid #{pid}" puts 'parent waiting for child' Polyphony.backend_waitpid(pid) puts 'parent done waiting'
Version data entries
70 entries across 70 versions & 1 rubygems