Use the prompt
Include the function's callers and the shared state it touches. The expected ordering helps Duo explain which interleavings could change the result.
Understand asynchronous code, promises, and concurrent operations. Identify potential race conditions before they cause bugs.
For GitLab Duo
Explain the async operations in [FILE/FUNCTION]. What's the order of execution and where could race conditions occur?Include the function's callers and the shared state it touches. The expected ordering helps Duo explain which interleavings could change the result.