Sha256: ec705ed425d167754950ec1180747bc47ed8c24ac0ccede24f74e77dc6c5ba93
Contents?: true
Size: 291 Bytes
Versions: 101
Compression:
Stored size: 291 Bytes
Contents
module GLib class Timeout def self.add(time, &block) Thread.new(time, block) do |time, block| begin sleep(time / 1000) block.call rescue Exception => e puts e.inspect puts e.backtrace end end end end end
Version data entries
101 entries across 101 versions & 1 rubygems