def __call__(self, r=0, throw=False): if r: return restart(r=r-1) if throw: raise ValueError('Err!') return self.task(err='Err!')
def call(self, should_restart=True): if should_restart: return restart(should_restart=False) return 1
def __call__(self, a=None, b=None, err=None, r=0): if r: return restart(a, b, err, r=r-1) return tactivity(a, b, err)
def __call__(self, n, r=True): if r: return restart(n, r=False) return parallel_reduce(self.r, map(self.m, range(n + 1)))
def __call__(self, r=True): a = self.task() return restart(a, 2)
def __call__(self, r=0, throw=False): if r: return restart(r=r - 1) if throw: raise ValueError('Err!') return self.task(err='Err!')
def __call__(self, a=None, b=None, err=None, r=0): if r: return restart(a, b, err, r=r - 1) return tactivity(a, b, err)