Sha256: 959d08d59177f047d2f9d26f4d2b1136e265e9986a72e6967d197ebe20f863be

Contents?: true

Size: 177 Bytes

Versions: 1

Compression:

Stored size: 177 Bytes

Contents

require "./lib/kommando"

k = Kommando.new "sleep 10"

Thread.new do
  puts "killer is waiting.."
  sleep 1
  k.kill
  puts "..killed."
end
k.run

puts "Killed while sleeping."

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kommando-0.0.7 examples/kill.rb