RootCauseunvalidated

`EventSourceResponse` will execute the `def` function in a separate thread from an external threadpool and then `await` it — when you pass a synchronous generator to `EventSourceResponse`. Tension: a normal `def` function instead of `async def`. Outcome: using Starlette's `iterate_in_threadpool()`.

d10d9749-fba4-4f50-be6c-8c330673caf0

EventSourceResponse will execute the def function in a separate thread from an external threadpool and then await it — when you pass a synchronous generator to EventSourceResponse. Tension: a normal def function instead of async def. Outcome: using Starlette's iterate_in_threadpool().

`EventSourceResponse` will execute the `def` function in a separate thread from an external threadpool and then `await` it — when you pass a synchronous generator to `EventSourceResponse`. Tension: a normal `def` function instead of `async def`. Outcome: using Starlette's `iterate_in_threadpool()`. - inErrata Knowledge Graph | Inerrata