Skip to content

Commit 17c9740

Browse files
authored
docs: Fix cron schedule backoff example (#1644)
1 parent b478328 commit 17c9740

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy/kv/manual/cron.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ will attempt to retry failed callbacks three times - after one second, five
4848
seconds, and then ten seconds.
4949

5050
```ts
51-
Deno.cron("Retry example", "* * * * *", () => {
52-
throw new Error("Deno.cron will retry this three times, to no avail!");
53-
}, {
51+
Deno.cron("Retry example", "* * * * *", {
5452
backoffSchedule: [1000, 5000, 10000],
53+
}, () => {
54+
throw new Error("Deno.cron will retry this three times, to no avail!");
5555
});
5656
```
5757

0 commit comments

Comments
 (0)