def _initThreadPool(self):
from twisted.python import threadpool
self.threadpool = threadpool.ThreadPool(0, 10, 'twisted.internet.reactor')
self.callWhenRunning(self.threadpool.start)
self.addSystemEventTrigger('during', 'shutdown', self.threadpool.stop)
评论列表
文章目录