我尝试使用多线程执行do_shit_parallel
函数。
def do_shit_parallel(par1,par2,par3,par4,par5):
print("function entered")
with ThreadPoolExecutor(max_workers=4) as executor:
for LinkedConnector in FuncGroupTask.Connectors:
executor.map(do_shit_parallel, [par1, par2, par3, par4, par5])
但它永远不会进入do_shit_parallel
方法而且从不打印某些东西