Skip to content

Commit 06c9c9c

Browse files
committed
Fixing compilation error
1 parent f6e286c commit 06c9c9c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ This example demonstrates:
2525
import { DurableObject } from 'cloudflare:workers';
2626

2727
// Send incremented counter value every second
28-
async function\* dataSource(signal: AbortSignal) {
28+
async function* dataSource(signal: AbortSignal) {
2929
let counter = 0;
3030
while (!signal.aborted) {
3131
yield counter++;
3232
await new Promise((resolve) => setTimeout(resolve, 1_000));
3333
}
3434

3535
console.log('Data source cancelled');
36-
3736
}
3837

3938
export class MyDurableObject extends DurableObject<Env> {
@@ -111,4 +110,3 @@ export default {
111110
In a setup where a Durable Object returns a readable stream to a Worker, if the Worker cancels the Durable Object's readable stream, the cancellation propagates to the Durable Object.
112111

113112
:::
114-
```

0 commit comments

Comments
 (0)