Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.287 kB
module Daikon
module Bus
def channel
@channel ||= EM::Channel.new
end
private :channel
def emit(event)
channel.push(event)
end
def on(event, &block)
channel.subscribe{ |msg| EM::Callback(msg, &block).call if event == msg }
end
end
end
Jump to Line
Something went wrong with that request. Please try again.