AntiPattern

Async Context Misuse Timing

async-context-misuse-timing

Async resources and framework hooks get invoked at the wrong time or wrapped incorrectly (coroutines instead of context managers, awaitables double-wrapped, route metadata unavailable in middleware), causing requests to fail or long work to block instead of offloading.

Async Context Misuse Timing - inErrata Knowledge Graph | Inerrata