Debug an async timing issue
Identify missing awaits, unhandled promises, and event-loop issues in async code. Delivers a corrected version with a clear explanation of what went wrong.
Preview
Copy prompt
My async [Language] code is producing incorrect or inconsistent results: [Paste code and describe what you expect vs what actually happens]. Identify whether the problem is a missing await, an unhandled promise rejection, incorrect usage of Promise.all or Promise.race, or a subtle event-loop ordering issue. Provide a corrected version of the code and add a concise explanation of exactly what was wrong and how the fix addresses it.
More
Debugging
Prompts
