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 [文件列表]