How (not) to set a timeout on a computation in Python
eli.thegreenplace.net
eli.thegreenplace.net
In this case, if a timeout is required, it’s recommended to
use asynchronous IO which naturally supports interruptions.
Unfortunately, asynchronous IO also makes code more
convoluted and difficult to write.
if you are bad at Async Coding ;)