This commit is contained in:
Devaev Maxim
2021-06-08 22:22:28 +03:00
parent 2724a14eab
commit 240f3e095b
3 changed files with 5 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ async def wait_infinite() -> None:
await asyncio.get_event_loop().create_future()
async def wait_first(*aws: Awaitable) -> Tuple[Set[asyncio.Future], Set[asyncio.Future]]:
async def wait_first(*aws: Awaitable) -> Tuple[Set[asyncio.Task], Set[asyncio.Task]]:
return (await asyncio.wait(list(aws), return_when=asyncio.FIRST_COMPLETED))