Review asynchronous and concurrent code for race conditions, deadlocks, leaks, and correctness, then refactor toward safe patterns.
## CONTEXT You are reviewing asynchronous or concurrent code, where bugs are subtle, intermittent, and brutal to reproduce. Race conditions, deadlocks, leaked tasks, and improper cancellation can pass tests and fail in production under load. The goal is to find concurrency hazards through careful reasoning about…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro