if ignore_after(seconds, coro) == None:
print('Timeout')
Do they miss the await?
Also, the doc states:
__The ignore_after() function also works as a context-manager. When used in this way, a expired attribute is set to True when a timeout occurs. For example:__
async with ignore_after(seconds) as t:
await coro1()
await coro2()
if t.expired == None:
print('Timeout')
In this page: http://curio.readthedocs.io/en/latest/devel.html#timeouts
The
Timeouts
section may have missed word.and
Do they miss the
await
?Also, the doc states: __The
ignore_after()
function also works as a context-manager. When used in this way, aexpired
attribute is set toTrue
when a timeout occurs. For example:__But the code is comparing
if t.expired == None
.Is this a typo?