Sha256: 47f1d3d5a9794841051cb6db52cec308aac1adbb6a1faac48cb93b7effcf78ee
Contents?: true
Size: 329 Bytes
Versions: 8
Compression:
Stored size: 329 Bytes
Contents
require_relative "../lib/asynchronous" calculation = async :parallelism do # Zombie! loop do sleep 1 end # inf loop # end puts $$ Thread.new do sleep 5 # this want to demonstrate that, # if the main process is killed, # you wont leave zombies behind! system "kill -9 #{$$}" end loop do sleep 1 end
Version data entries
8 entries across 8 versions & 1 rubygems