import concurrent.futures as f
import time
T = f.ThreadPoolExecutor(1)

def block5():
    time.sleep(5)
return 1
q = T.submit(block5)
m = T.submit(block5)
print(q.cancel())
print(m.cancel())
Как сломать time.sleep() в python concurrent.futures