Can loop through the thread pool, support pass function, pass, transfer call function, immediately terminate all threads, support thread recycling, save time and resources 可循环线程池,支持传函数、传参、传回调函数、立即终止所有线程,支持线程的循环利用,节省时间和资源
pool = ThreadPoolSpark(pool_num)
for task in task_list:
pool.run(func=func(), args=(self, task))
pool.wait()