示例#1
0
文件: utils.py 项目: arhik/pulsar
 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
示例#2
0
文件: utils.py 项目: arhik/pulsar
 def stop_actors(self, *args):
     all = args or self.all_spawned
     return as_gather(*[send(a, 'stop') for a in all])
示例#3
0
文件: utils.py 项目: devopsmi/pulsar
 def stop_actors(self, *args):
     all = args or self.all_spawned
     return as_gather(*[send(a, 'stop') for a in all])