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

Version Path
asynchronous-3.0.1 examples/no_zombie_test.rb
asynchronous-3.0.0.pre.pre examples/no_zombie_test.rb
asynchronous-2.1.0 examples/no_zombie_test.rb
asynchronous-2.0.0 examples/no_zombie_test.rb
asynchronous-1.0.4 examples/no_zombie_test.rb
asynchronous-1.0.3 examples/no_zombie_test.rb
asynchronous-1.0.2 examples/no_zombie_test.rb
asynchronous-1.0.1 examples/no_zombie_test.rb