According to the python3.5
documentation there should be a Handle
called timeout
in the asyncio
module ->documentation.
But if I try to use it python3.5
tells me, that there is no asyncio.timeout
:
$ python3.5
Python 3.5.0+ (default, Oct 11 2015, 09:05:38)
[GCC 5.2.1 20151010] on linux
>>> import asyncio
>>> asyncio.timeout(3)
AttributeError: module 'asyncio' has no attribute 'timeout'
I have already searched the web, but I was unable to find any solution.
I am using Linux <my hostname> 4.2.0-27-generic #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
.
So how can I use asyncio.timeout
, why isn't it where it should be, or how can I bypass my problem?
It will appear in Python 3.5.2
For now you can use Timeout
class from aiohttp
with the same behavior.