The difference between def and async def in FastAPI
I was curious about the difference between def and async def for path operations of FastAPI, especially when the task is purely CPU-intensive, and decided to check what’s going on behind the scenes.