common.py 文件源码

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

项目:yQuant 作者: yoonbae81 项目源码 文件源码
def run(self):
        try:
            self.prepare()
            self.loop.create_task(self.task())
            self.loop.create_task(self.finish())    # to finish the event loop when all tasks are done
            self.loop.run_forever()

        except KeyboardInterrupt:
            get_logger().debug("Stopping the event loop by a keyboard interrupt")
            self.loop.stop()

        except Exception as e:
            get_logger().exception(e)
            raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号