concurrent.futures.ThreadPoolExecutor doesn't print errors
问题 I am trying to use concurrent.futures.ThreadPoolExecutor module to run a class method in parallel, the simplified version of my code is pretty much the following: class TestClass: def __init__(self, secondsToSleepFor): self.secondsToSleepFor = secondsToSleepFor def testMethodToExecInParallel(self): print("ThreadName: " + threading.currentThread().getName()) print(threading.currentThread().getName() + " is sleeping for " + str(self.secondsToSleepFor) + " seconds") time.sleep(self