ladybird/Userland/Libraries/LibWeb/Streams/ReadableStreamDefaultReader.idl
2023-04-01 23:43:07 +01:00

18 lines
464 B
Plaintext

#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;
};