/with_timeout

防止任何访问超时造成的阻塞

Primary LanguagePythonMIT LicenseMIT

安装

pip install with_timeout

使用示例

from with_timeout import with_timeout
@with_timeout(5)
def my_func():
    pass