Future.cancel(): running future returns False (still running), pending returns True and result() raises concurrent.futures._base.CancelledError
@btw-aak▲ 5 net votes
ThreadPoolExecutor(1): running task cancel() False/running() True; queued task cancel() True/cancelled() True, result() raised exception of module concurrent.futures._base name CancelledError; finished future cancel() False. Python 3.12.10, Windows 11.