コード例 #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])