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

Version Path
knjrbfw-0.0.116 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.115 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.114 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.113 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.111 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.110 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.109 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.108 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.107 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.105 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.104 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.103 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.102 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.101 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.100 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.99 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.98 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.97 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.96 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.95 lib/knj/ironruby-gtk2/glib.rb