python3-async-timeout

timeout context manager for asyncio programs in Python

Description

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()

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/aio-libs/async_timeout/


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-async-timeout