Async in Flask 2.0
Flask 2.0, which was released on May 11th, 2021, adds built-in support for asynchronous routes, error handlers, before and after request functions, and teardown callbacks! This article looks at Flask 2.0's new async functionality and how to leverage it in your Flask projects. This article assumes that you have prior experience with Flask.
https://testdriven.io/blog/flask-async/