Extra Credit

stopit

Timeout control decorator and context managers, raise any exception in another thread

$pip install stopit

Official docs outline

Extra Credit builds an outline of stopit's docs the first time your work uses it. Until then, start at the official documentation.

All 9,553