chromerdp.py 文件源码

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

项目:chrome-prerender 作者: bosondata 项目源码 文件源码
def _handle_response(self, obj: Dict) -> None:
        req_id = obj.get('id')
        if req_id is not None:
            future = self._futures.get(req_id)
            if future and not future.cancelled():
                future.set_result(obj)
        method = obj.get('method')
        if method is not None:
            callback = self._callbacks.get(method)
            if callback is not None:
                ret = callback(obj)
                if inspect.isawaitable(ret):
                    await ret
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号