Skip to content

Commit

Permalink
docs(swingset): fix run-policy docs, didCleanup returns keep-going (#…
Browse files Browse the repository at this point in the history
…9930)

Fix the run-policy docs, my `didCleanup()` examples need to show `return true` to allow execution to continue after a cleanup crank.
  • Loading branch information
mergify[bot] authored Aug 28, 2024
2 parents d9700fb + fd82751 commit 2c51185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/SwingSet/docs/run-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ function makeSlowTerminationPolicy() {
},
didCleanup(details) {
cleanups -= details.cleanups.total;
return true;
},
});
return policy;
Expand Down Expand Up @@ -252,6 +253,7 @@ function makeCleanupOnlyPolicy() {
},
didCleanup(details) {
cleanups -= details.cleanups.total;
return true;
},
});
return policy;
Expand Down

0 comments on commit 2c51185

Please sign in to comment.