device.py 文件源码

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

项目:python-functionfs 作者: vpelletier 项目源码 文件源码
def _onReceived(self, block, res, res2):
        if res != -errno.ESHUTDOWN:
            # XXX: is it good to resubmit on any other error ?
            self._aio_context.submit([block])
        if res < 0:
            trace('aio read completion error:', -res)
        else:
            trace('aio read completion received', res, 'bytes')
            self._writer(block.buffer_list[0][:res])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号