futures.py 文件源码

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

项目:parsl 作者: Parsl 项目源码 文件源码
def parent_callback(self, parent_fu):
        ''' Callback from executor future to update the parent.

        Args:
            - executor_fu (Future): Future returned by the executor along with callback

        Returns:
            - None

        Updates the super() with the result() or exception()
        '''

        if parent_fu.done() is True:
            e = parent_fu._exception
            if e:
                super().set_exception(e)
            else:
                super().set_result(parent_fu.result())
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号