Oct-31-2022, 03:47 PM
You can print a message for every request and after that you
Consider looking at ASGI. You will end up building one or similar anyway. Just to build on top of your framework. Unless you want to do something completely different.
Do not use time.sleep. It is blocking. Async.sleep is not
await asyncio.sleep(15)
both in maincoro. Run the whole thing and refresh the "web page" two-three times. If you get the message on every refresh it is asynchronous.Consider looking at ASGI. You will end up building one or similar anyway. Just to build on top of your framework. Unless you want to do something completely different.
Do not use time.sleep. It is blocking. Async.sleep is not