Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> python >> python3-async-timeout
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: python-async-timeout  ]

软件包: python3-async-timeout (3.0.1-1)

timeout context manager for asyncio programs in Python

The context manager is useful in cases when you want to apply timeout logic around block of code or in cases when asyncio.wait_for() is not suitable. Also it's much faster than asyncio.wait_for() because timeout doesn't create a new task.

Example:

 with timeout(1.5):
     yield from inner()

其他与 python3-async-timeout 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: python3
    interactive high-level object-oriented language (default python3 version)

下载 python3-async-timeout

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 5.5 kB30 kB [文件列表]