__init__.py 文件源码

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

项目:gax-python 作者: googleapis 项目源码 文件源码
def add_done_callback(self, fn):  # pylint: disable=invalid-name
        """Enters a polling loop on OperationsClient.get_operation, and once the
        operation is done or cancelled, calls the function with this
        _OperationFuture. Added callables are called in the order that they were
        added.
        """
        if self._operation.done:
            _try_callback(self, fn)
        else:
            self._queue.put(dill.dumps(fn))
            if self._process is None:
                self._process = mp.Process(target=self._execute_tasks)
                self._process.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号