Oct-28-2022, 11:17 AM
I personally can't.
I found that discussion and it seems if you want to implement some asynchronous behaviour it won't work just using asyncio. That lib is a single-threaded module to make async calls. They added that run_in_executor method that takes concurrent.futures.executor object as a parameter but don't have time to figure out how to use it with just wsgi.
If you want to build a web app try some framework like Flask or a module like aiohttp, Falcon, etc. They support and handle async requests.
I found that discussion and it seems if you want to implement some asynchronous behaviour it won't work just using asyncio. That lib is a single-threaded module to make async calls. They added that run_in_executor method that takes concurrent.futures.executor object as a parameter but don't have time to figure out how to use it with just wsgi.
If you want to build a web app try some framework like Flask or a module like aiohttp, Falcon, etc. They support and handle async requests.