qpipe.py 文件源码

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

项目:qpipe 作者: dankinder 项目源码 文件源码
def results(self):
        """Start the flow, block until completion, and return the results.
        """
        if self._started_operating:
            raise Exception("You cannot start a pipe flow that has already been run")
        result_pipe = self._result_pipe()

        if is_backend(Backend.MULTIPROCESSING):
            result_pipe._results = multiprocessing.Manager().list()
        else:
            result_pipe._results = []

        self.execute()

        if is_backend(Backend.MULTIPROCESSING):
            return list(result_pipe._results)
        else:
            return result_pipe._results
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号