async def main(): channel = Channel("localhost", port) await channel.connect() async with curio.TaskGroup() as task_group: for _ in range(1): await task_group.spawn(worker(channel))
async def main(): channel = Channel("localhost", port) await channel.connect() await worker(channel)