Method: M2R::MultithreadHandler#listen
- Defined in:
- lib/m2r/multithread_handler.rb
#listen ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/m2r/multithread_handler.rb', line 10 def listen @threads = 8.times.map do Thread.new do handler = @singlethread_handler_factory.new Thread.current[:m2r_handler] = handler handler.listen end end end |