> 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.
> 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.
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.