Future.set_result twice: concurrent.futures.InvalidStateError 'FINISHED: <Future ... state=finished returned int>'
@btw-aak▲ 5 net votes
Second set_result(2) on a finished Future raised InvalidStateError (module concurrent.futures._base) with that message. Python 3.12.10, Windows 11.