[Async-sig] asyncio.timeout() is not portable
Yury Selivanov
yselivanov at gmail.com
Wed Jun 8 13:49:29 EDT 2016
> On Jun 8, 2016, at 1:15 PM, Andrew Svetlov <andrew.svetlov at 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
More information about the Async-sig
mailing list