Skip to content

Commit 1092693

Browse files
authored
Update ReadableStream doc
Formatting for the `dataSource` function was off.
1 parent c5a4e2c commit 1092693

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/durable-objects/examples/readable-stream.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ import { DurableObject } from 'cloudflare:workers';
2626

2727
// Send incremented counter value every second
2828
async function* dataSource(signal: AbortSignal) {
29-
let counter = 0;
30-
while (!signal.aborted) {
31-
yield counter++;
32-
await new Promise((resolve) => setTimeout(resolve, 1_000));
33-
}
29+
let counter = 0;
30+
while (!signal.aborted) {
31+
yield counter++;
32+
await new Promise((resolve) => setTimeout(resolve, 1_000));
33+
}
3434

3535
console.log('Data source cancelled');
3636
}

0 commit comments

Comments
 (0)