Suppose I run asyncio.start_server() and I want it to run forever. What am I supposed to asyncio.gather()) on without making stuff up?
[Edit] Production code or it didn't happen.
server = await asyncio.start_server( context.handle_requests, str(config.host), config.port, limit=MAX_READ_SIZE )
I stumbled on this as something that works:
useless_lock = asyncio.Lock() while True: await useless_lock.acquire()
async with server: await server.serve_forever()
I reiterate that serve_forever() is not in 3.6.
Suppose I run asyncio.start_server() and I want it to run forever. What am I supposed to asyncio.gather()) on without making stuff up?
[Edit] Production code or it didn't happen.