futures.py 文件源码

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

项目:parsl 作者: Parsl 项目源码 文件源码
def __init__ (self, parent, tid=None, stdout=None, stderr=None):
        ''' Initialize the AppFuture.

        Args:
             - parent (Future) : The parent future if one exists
               A default value of None should be passed in if app is not launched

        KWargs:
             - tid (Int) : Task id should be any unique identifier. Now Int.
             - stdout (str) : Stdout file of the app.
                   Default: None
             - stderr (str) : Stderr file of the app.
                   Default: None
        '''
        self._tid = tid
        super().__init__()
        self.parent   = parent
        #if self.parent:
        #    parent.add_done_callback(self.parent_callback)
        self._outputs = []
        self._stdout  = stdout
        self._stderr  = stderr
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号