下面是我尝试测试的代码的简化版本:一个定期清空的简单队列。对于队列中的每个数字,都会生成一个HTTP POST,将其发送到一个(在本例中是虚构的) API地址。class Queue { processingQueue: boolean;
constructor(public $http:const item = this.queue[0]; // get the first number in the queue
我正在用Python创建一个multiprocessing.Queue,并将multiprocessing.Process实例添加到这个Queue中。如果是这样的话,我希望清空Queue并终止执行。= queue
for job in iter(self.queue.get, None):
stdout = mbkit.dispatch.cexectools.cexecqueue</