Getting started
API Reference
Examples
A context manager that raises a TimeoutError after a specified time.
TimeoutError
Modified from 1.
duration (float) – The time duration in seconds, should be non-negative, 0 for no timeout.
References
https://stackoverflow.com/questions/492519/timeout-on-a-function-call