1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

LibWeb: Add ReadableStreamDefaultReader

This commit is contained in:
Matthew Olsson 2023-03-28 18:30:22 -07:00 committed by Linus Groh
parent 7ff657ef57
commit 222e3c32cd
11 changed files with 385 additions and 8 deletions

View file

@ -0,0 +1,17 @@
#import <Streams/ReadableStream.idl>
#import <Streams/ReadableStreamGenericReader.idl>
// https://streams.spec.whatwg.org/#readablestreamdefaultreader
[Exposed=*]
interface ReadableStreamDefaultReader {
constructor(ReadableStream stream);
Promise<ReadableStreamReadResult> read();
undefined releaseLock();
};
ReadableStreamDefaultReader includes ReadableStreamGenericReader;
dictionary ReadableStreamReadResult {
any value;
boolean done;
};