Sha256: 93cc0542fa937794acfdbb10989a254f40adf2ad93b4d29c451b3eecab9095de
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
require "./lib/kommando" last_k = nil 100.times do last_k = Kommando.run "uptime", { timeout: 0.1 } last_k.when :timeout do print "t" puts last_k.out end print "." end puts "" unless Thread.list.count == 1 puts Thread.list.map(&:inspect).join("\n") puts last_k.out raise "Thread leak" end puts "ok"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.0.21 | examples/thread_leak.rb |