Skip to content

Commit 8996f8e

Browse files
committed
coderabbit fixes
1 parent 307bb09 commit 8996f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/runs/heartbeats.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ export const processLargeDataset = task({
1515
id: "process-large-dataset",
1616
run: async (payload: { items: string[] }) => {
1717
for (const row of payload.items) {
18-
process(row);
1918
await heartbeats.yield();
19+
processRow(row);
2020
}
2121
return { processed: payload.items.length };
2222
},
2323
});
2424

25-
function process(row: string) {
25+
function processRow(row: string) {
2626
// synchronous CPU-heavy work
2727
}
2828
```

0 commit comments

Comments
 (0)