loop.py 文件源码

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

项目:uvio 作者: srossross 项目源码 文件源码
def tick(self):

        self.handle_exceptions()

        if not self.ready:
            # Don't let idle block the loop from exiting
            # There should be other handdles blocking exiting if
            # there is nothing ready
            self.unref_ticker()
            return
        coroutine_or_func, future = self.ready.popitem()

        if inspect.iscoroutine(coroutine_or_func):
            process_until_await(self, future, coroutine_or_func)
        else:
            coroutine_or_func()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号