问题
For example see this answer: Python - How can I implement a 'stoppable' thread?
for stoppable threads using the standard threading module.
Is there an equivalent pattern using the concurrent.futures package?
来源:https://stackoverflow.com/questions/64234803/is-there-a-stoppable-thread-in-pythons-concurrent-futures