Пример #1
0
 def setUp(self):
     self.pool = processes.ProcessPool('echo', ['hello'], max_size=1)
Пример #2
0
 def setUp(self):
     self.pool = processes.ProcessPool('echo', ["hello"])
Пример #3
0
 def setUp(self):
     self.pool = processes.ProcessPool('cat')
Пример #4
0
 def setUp(self):
     self.pool = processes.ProcessPool(
         sys.executable,
         ['-c', 'print "y"; import time; time.sleep(0.4); print "y"'],
         max_size=1)