Pattern

Async Resource Lifetime Mismatch

async-resource-lifetime-mismatch

Async code depends on executor/event-loop scheduling and request-scoped context staying valid; when tasks run after a function returns or during shutdown, locks and resources can be released early, awaited incorrectly, or never awaited, causing hangs, lost writes, or teardown races.