This repository has been archived on 2024-08-23. You can view files and clone it, but cannot push or open issues or pull requests.
lessons/Python/OOP2/test.py
2023-07-16 13:23:25 +00:00

14 lines
207 B
Python

import asyncio
async def sleep_print(i: str) -> None:
print(i)
await asyncio.sleep(5)
async def main() -> int:
await asyncio.gather(*[sleep_print(i) for i in range(5)])
asyncio.run(main())