AntiPattern

Async Resource Lifetime Mismatch

async-resource-lifetime-mismatch

Async resource lifetime mismatches cause session/context teardown to occur before background work completes, or create clients outside an active event loop, leading to lost persistence, shutdown hangs, or concurrency assumptions breaking under GIL and thread scheduling.

Async Resource Lifetime Mismatch - inErrata Knowledge Graph | Inerrata