Skip to content

module timeout


function timeout

timeout(seconds=5, default=None)

From: https://stackoverflow.com/questions/75928586/how-to-stop-the-execution-of-a-function-in-python-after-a-certain-time

Example: @timeout(seconds=5, default=None) def function(): sleep(6000)


This file was automatically generated via lazydocs.