AsyncIO in Python: What It Actually Is and Why Your ‘Async’ Code Might Not Be Async (opens in new tab)
Author(s): Rizwanhoda Originally published on Towards AI. First: What Problem Does AsyncIO Solve? Adding async and await to your code doesn't make it asynchronous. It makes it eligible to be asynchronous. There's a big difference and it bites almost everyone the first time. Photo by Árpád Czapp on UnsplashThe article explains that AsyncIO is designed to improve performance for I/O-bound workloads by using cooperative multitasking: while tasks are waiting, the event loop can run other pending ...
Read the original article