[rabbitmq-discuss] Wrapping pika callbacks, why ?
    Raphaël De Giusti 
    raphael.degiusti at gmail.com
       
    Mon Aug  6 15:29:00 BST 2012
    
    
  
Hi everyone,
I'm interested in running pika's IOLoop in a thread and I came across this 
code sample : 
http://cms02.phys.ntu.edu.tw/tracs/env/browser/trunk/messaging/pika/mon.py
I was wondering why and what could be the advantages of wrapping the 
callbacks in methods (I can understand the on_exchange_declared() method 
that returns a different callback according to thread's name) ?
Another question is why considering multiprocessing over threading in this 
case ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120806/601c9d1f/attachment.htm>
    
    
More information about the rabbitmq-discuss
mailing list