What problem does it solve? Concurrent and asynchronous code often fails intermittently due to race conditions, unhandled promise rejections, leaked resources, and missing cancellation support, making bugs hard to reproduce and diagnose. ## Core Features & Use Cases - Fault-Tolerant Parallel Execution: Guidance on choosing between Promise.all, Promise.allSettled, Promise.race, and Promise.any based on whether operations are dependent or independent. - Cancellation and Cleanup: Patterns for AbortController-based timeouts, cancellation propagation through child operations, and guaranteed resource cleanup with try/finally or Symbol.dispose. - Race Condition Prevention: Async mutex implementation, database-level SELECT FOR UPDATE locking, debounce vs. throttle decisions, and concurrency-limited batch processing. - Use Case: When two concurrent requests both read and write an account balance causing lost updates, apply the mutex or transaction pattern to serialize the read-modify-write cycle. ## Quick Start Review my async order processing function for race conditions, missing cancellation support, and unhandled promise rejections.