Sha256: cad43890f437ea7cf40df8c57f34e94031f21d549c4cf8072c8d4da81a6e03f3
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
module EventAggregator # Public: MessageJob is a class used by the EventAggregator::Aggregator # for processing message distribution. # class MessageJob # Public: Duplicate some text an arbitrary number of times. # # data - The data that will be sent to the callback, originating # from a message. # callback - The callback that will be processed with the data as # a parameter def perform(data, callback) begin callback.call(data) rescue Exception => e STDERR.puts e.message STDERR.puts e.backtrace end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
event_aggregator-1.1.6 | lib/event_aggregator/message_job.rb |