예제 #1
0
 def _queue_for(self, queue):
     if queue not in self.queues:
         self.queues[queue] = Queue()
     return self.queues[queue]
예제 #2
0
 def new_queue(self, queue):
     if queue in self.queues:
         return   # silently ignore the fact that queue already exists
     self.queues[queue] = Queue()
예제 #3
0
 def _new_queue(self, queue, **kwargs):
     if queue not in self.queues:
         self.queues[queue] = Queue()
예제 #4
0
파일: monads.py 프로젝트: xyicheng/cell
 def __init__(self, name, binding):
     self.queue = Queue()
     self._recv_name = name
     self._recv_binding = binding
     super(RemoteMailbox, self).__init__()