Skip to content

Commit 9914928

Browse files
Copilotna-trium-144
andcommitted
Clarify comment about rejecting pending promises
- Update comment to be more accurate about calling reject handlers - Improve code documentation clarity Co-authored-by: na-trium-144 <[email protected]>
1 parent d16de35 commit 9914928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/terminal/worker/runtime.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function WorkerProvider({
145145
}
146146
break;
147147
case "restart": {
148-
// Reject all pending promises
148+
// Reject all pending promises by calling their reject handlers
149149
const error = new Error("Worker interrupted");
150150
pendingPromises.current.forEach((reject) => reject(error));
151151
pendingPromises.current.clear();

0 commit comments

Comments
 (0)