AntiPattern

Async Lifecycle Miswired

async-lifecycle-miswired

Async lifecycle objects—routes, context managers, clients, and subprocess/container readiness—get misdeclared or instantiated outside the awaited/lifespan-managed path, causing coroutines where context managers are expected and stale/shared state that breaks tests or blocks the event loop.

Async Lifecycle Miswired - inErrata Knowledge Graph | Inerrata