lib/reactor/event.rb in reactor-0.5.0 vs lib/reactor/event.rb in reactor-0.5.1
- old
+ new
@@ -51,14 +51,9 @@
class << self
def perform(name, data)
new.perform(name, data)
end
- def process(name, data)
- new.perform(name, data)
- end
- deprecate process: 'use Reactor::Event#perform instead'
-
def publish(name, data = {})
message = new(data.merge(event: name))
if message.at.nil?
perform_async name, message.data