mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
17 lines
464 B
Text
17 lines
464 B
Text
#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;
|
|
};
|