Skip to content

Commit

Permalink
Stop Sooner (#3889)
Browse files Browse the repository at this point in the history
I noticed when I click stop, sometimes it seems ignored. I think
this is why.
  • Loading branch information
greggman authored Aug 15, 2024
1 parent 4ed3eaf commit 4ccb5a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/runtime/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ function makeSubtreeChildrenHTML(
const runMySubtree = async () => {
const results: SubtreeResult[] = [];
for (const { runSubtree } of childFns) {
if (stopRequested) {
break;
}
results.push(await runSubtree());
}
return mergeSubtreeResults(...results);
Expand Down

0 comments on commit 4ccb5a4

Please sign in to comment.