def _(*args, **kwargs): args = yield from as_gather(*args) result = getattr(self.test, name)(*args, **kwargs) if isawaitable(result): result = yield from result return result
def stop_actors(self, *args): all = args or self.all_spawned return as_gather(*[send(a, 'stop') for a in all])