mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
LibWeb: Add ReadableStreamDefaultReader
This commit is contained in:
parent
7ff657ef57
commit
222e3c32cd
11 changed files with 385 additions and 8 deletions
|
@ -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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue