lib/rrj/janus/processus/event.rb in ruby_rabbitmq_janus-1.2.7 vs lib/rrj/janus/processus/event.rb in ruby_rabbitmq_janus-1.2.8
- old
+ new
@@ -12,13 +12,14 @@
#
# @see file:/config/default.md For more information to config file used.
class Event < Concurrency
include Singleton
- # Create a thred for execute a block code in a thread
+ # Create a thread for execute a block code in a thread
#
# @param [Proc] block Block code for execute action when queue
- # standard 'from-janus' receive a message.
+ # standard 'from-janus' receive a message.This block is sending to
+ # publisher created for this thread.
#
# @return [Thread] It's a thread who listen queue and execute action
def run(&block)
thread.join
Thread.new do