I was given this as a work-around for lack of `serve_forever`
I am not sure what the significance of 300 is as any number in there seems to work. Perhaps, 5 minutes is some default value.
Code:
async with server: while True: await asyncio.sleep(300)
Statistics: Posted by davefes — Mon Jul 15, 2024 6:49 am