snjyor / with_timeout

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

安装

pip install with_timeout

使用示例

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

About

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

License:MIT License


Languages

Language:Python 100.0%