Module: EventMachine
- Defined in:
- lib/eventmachine-distributed-notification.rb
Defined Under Namespace
Modules: DistributedNotification
Classes: DistributedNotificationWatch
Class Method Summary
collapse
Class Method Details
.post_distributed_notification(name, data) ⇒ Object
.watch_distributed_notification(name, handler = nil, *args, &block) ⇒ Object
37
38
39
40
41
42
43
|
# File 'lib/eventmachine-distributed-notification.rb', line 37
def self.watch_distributed_notification(name, handler = nil, *args, &block)
args = [name, *args]
klass = klass_from_handler(EventMachine::DistributedNotificationWatch, handler, *args);
c = klass.new(*args, &block)
c.start
c
end
|