79256758

Date: 2024-12-06 03:25:55
Score: 1
Natty:
Report link

You can create tasks if you run them concurrently:

async def run(port):
  async with serve(echo, "localhost", port):
    ...

async def main():
  async with asyncio.TaskGroup() as tg:
    for i in range(6):
      tg.create_task(run(20781 + i))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: k24d