If you don’t use `async def` and you are using fastapi it’s easy to accidentally block the event loop.

> it’s easy to accidentally block the event loop.

Can you share a scenario where this would happen?

I have deployed multiple machine learning and data analytics-focused web services, and this has never happened to me.

[deleted]

Well, you can even block event loop in `async def` if you are not careful. When you are using `async def` you need to do all your IO (disk, network) operations asynchronously or your are blocking the event loop.

With a for loop? You probably don't know you are, or just aren't doing anything cpu intensive.