Skip to content

Commit fcca839

Browse files
committed
Adding that ReadableStream cancellation propagates from Worker to DO
1 parent 748c4ee commit fcca839

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/docs/workers/runtime-apis/streams/readablestream.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ let reader = readable.getReader({ mode: 'byob' });
4747

4848
* When `true`, errors in the source `ReadableStream` will no longer abort the destination `WritableStream`. `pipeTo` will return a rejected promise with the error from the source or any error that occurred while aborting the destination.
4949

50+
## ReadableStream with Durable Objects
5051

52+
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.
5153

5254
***
5355

0 commit comments

Comments
 (0)