1 [Exposed=(Window,Worker,Worklet),
2 //Transferable See Bug 1734240
4 interface ReadableStream {
6 constructor(optional object underlyingSource, optional QueuingStrategy strategy = {});
8 readonly attribute boolean locked;
11 Promise<void> cancel(optional any reason);
14 ReadableStreamReader getReader(optional ReadableStreamGetReaderOptions options = {});
17 // ReadableStream pipeThrough(ReadableWritablePair transform, optional StreamPipeOptions options = {});
20 // Promise<undefined> pipeTo(WritableStream destination, optional StreamPipeOptions options = {});
23 sequence<ReadableStream> tee();
26 // async iterable<any>(optional ReadableStreamIteratorOptions options = {});
29 enum ReadableStreamReaderMode { "byob" };
31 dictionary ReadableStreamGetReaderOptions {
32 ReadableStreamReaderMode mode;