コード例 #1
0
ファイル: Warehouse.py プロジェクト: AmoebaFactor/SuperMario
 def run_workers(self, proxies):
     threadPool = ThreadPool(len(proxies))
     for proxy in proxies:
         threadPool.run(self.accept_proxy, callback=None, proxy=proxy)
     threadPool.killAllWorkers(None)
コード例 #2
0
ファイル: Mario.py プロジェクト: AmoebaFactor/SuperMario
 def run_workers(self, urls):
     threadPool = ThreadPool(len(urls))
     for url in urls:
         threadPool.run(self.run_mario, callback=self.callback, url=url)
     threadPool.killAllWorkers(None)