Fix all deprecation warnings for 3.8
This commit is contained in:
@ -327,8 +327,8 @@ async def async_all(gen, *, check=_isawaitable):
|
||||
return False
|
||||
return True
|
||||
|
||||
async def sane_wait_for(futures, *, timeout, loop):
|
||||
done, pending = await asyncio.wait(futures, timeout=timeout, return_when=asyncio.ALL_COMPLETED, loop=loop)
|
||||
async def sane_wait_for(futures, *, timeout):
|
||||
done, pending = await asyncio.wait(futures, timeout=timeout, return_when=asyncio.ALL_COMPLETED)
|
||||
|
||||
if len(pending) != 0:
|
||||
raise asyncio.TimeoutError()
|
||||
|
Reference in New Issue
Block a user