Sha256: 07ded7e6c896e9e0d56abda4e8ad76268f7b02574802b159eb5a1eb7523e61a0

Contents?: true

Size: 186 Bytes

Versions: 9

Compression:

Stored size: 186 Bytes

Contents

require "./lib/kommando"

k = Kommando.new "sleep 2", {
  timeout: 1
}
k2 = Kommando.new "sleep 2", {
  timeout: 1
}

k.run
k2.run

if k.code == 1 && k2.code == 1
  puts "timed out"
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kommando-0.0.12 examples/timeout.rb
kommando-0.0.11 examples/timeout.rb
kommando-0.0.10 examples/timeout.rb
kommando-0.0.9 examples/timeout.rb
kommando-0.0.8 examples/timeout.rb
kommando-0.0.7 examples/timeout.rb
kommando-0.0.6 examples/timeout.rb
kommando-0.0.5 examples/timeout.rb
kommando-0.0.4 examples/timeout.rb