示例#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__()