pump.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:mcp-watch 作者: bernard357 项目源码 文件源码
def work_every_minute(self, queue, region):
        """
        Handles data for one minute and for one region

        :param queue: the minute ticks for a given day
        :type queue: `Queue`

        :param region: the region to consider
        :type region: `str`

        This is ran as an independant process, so it works asynchronously
        from the rest.
        """

        try:

            for cursor in iter(queue.get, 'STOP'):
                self.tick(cursor, region)
                time.sleep(0.5)

        except KeyboardInterrupt:
            pass
        except:
            raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号