async.py 文件源码

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

项目:server 作者: happypandax 项目源码 文件源码
def _notify(self):
        try:
            while not self.stopping:
                if not self.out_q:
                    # wait for jobs to complete
                    self.out_q_has_data.clear()
                    self.out_q_has_data.wait()
                    continue
                self.out_q.popleft().set()
        except BaseException:
            self._error()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号