Sha256: 0a9e2569ff0b5abbed9cbd85844d9f32ccc021d55aeb3c16795369e7a3e53f3a
Contents?: true
Size: 194 Bytes
Versions: 3
Compression:
Stored size: 194 Bytes
Contents
require 'tty-command' cmd = TTY::Command.new threads = [] 3.times do |i| th = Thread.new do 10.times { cmd.run("echo th#{i}; sleep 0.1") } end threads << th end threads.each(&:join)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-command-0.8.1 | examples/threaded.rb |
tty-command-0.8.0 | examples/threaded.rb |
tty-command-0.7.0 | examples/threaded.rb |