Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 292305e16e
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.217 kb
require 'thread'
class EventHandler
def self.add_event(*event)
@queue ||= Queue.new
@queue.push(event)
end
def self.each
unless @queue.nil? || @queue.empty?
yield @queue.pop
end
end
end
Jump to Line
Something went wrong with that request. Please try again.