3 ms·
Isn't this what the `with` keyword was made for: with ThreadPool() as pool: fut = pool.submit(foo) print(fut.result()) My idea is that ctr
by Rotareti 9y ago
Isn't this what the `with` keyword was made for:
with ThreadPool() as pool:
fut = pool.submit(foo)
print(fut.result())
My idea is that ctrl+c would now cancel child operations cleanly?