Sha256: 617d8d4d0c46e5ea32aa1079e9cd5d8990e0604008179fd490123c18b06014ac
Contents?: true
Size: 247 Bytes
Versions: 4
Compression:
Stored size: 247 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
knjrbfw-0.0.8 | lib/knj/ironruby-gtk2/glib.rb |
knjrbfw-0.0.7 | lib/knj/ironruby-gtk2/glib.rb |
knjrbfw-0.0.4 | lib/knj/ironruby-gtk2/glib.rb |
knjrbfw-0.0.3 | lib/knj/ironruby-gtk2/glib.rb |