Sha256: aeb340fed506c5b0ead36375d79c0c4388c3d962c4dc5996fae00e93a35fa2c4

Contents?: true

Size: 166 Bytes

Versions: 6

Compression:

Stored size: 166 Bytes

Contents

require "./lib/kommando"

k = Kommando.new "sleep 0.5"
k.run_async

puts "started in background"

while (k.code == nil) do
  print "."
  sleep 0.1
end

puts "exited"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kommando-0.0.12 examples/async.rb
kommando-0.0.11 examples/async.rb
kommando-0.0.10 examples/async.rb
kommando-0.0.9 examples/async.rb
kommando-0.0.8 examples/async.rb
kommando-0.0.7 examples/async.rb