My first thought was to use `async with` but I found that just `with` also works.
Sorry, but I don't follow how async context manager may be better.
> On Jun 8, 2016, at 1:15 PM, Andrew Svetlov <andrew.svetlov@gmail.com> wrote:
>
> asyncio.timeout behaves like asyncio.wait_for BTW.
> It cancels inner tasks and sends asyncio.TimeoutError to outer.
Right. And I think it’s a totally normal behaviour for asyncio.
The only thing I’d fix in asyncio.timeout() (aside from resolving
Ben’s questions) is to make it use ‘async with’ statement.
Yury
--