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.49 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.48 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.47 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.46 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.45 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.44 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.43 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.42 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.41 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.40 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.39 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.38 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.37 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.36 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.35 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.34 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.33 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.32 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.31 lib/knj/ironruby-gtk2/glib.rb
knjrbfw-0.0.30 lib/knj/ironruby-gtk2/glib.rb