AntiPattern

Async Miswired Lifecycles

async-lifecycle-mismatch

Async call boundaries get miswired: route handlers or mocks return coroutines where context managers are expected, async background tasks outlive request-scoped contexts, and lifespan/fixtures reuse event-loop state, causing streaming and connection conflicts under ASGI.