We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a4e2c commit 1092693Copy full SHA for 1092693
src/content/docs/durable-objects/examples/readable-stream.mdx
@@ -26,11 +26,11 @@ import { DurableObject } from 'cloudflare:workers';
26
27
// Send incremented counter value every second
28
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
-}
+ let counter = 0;
+ while (!signal.aborted) {
+ yield counter++;
+ await new Promise((resolve) => setTimeout(resolve, 1_000));
+ }
34
35
console.log('Data source cancelled');
36
}
0 commit comments