2023-08-27 03:55:25 +03:00
|
|
|
#import <Streams/ReadableStream.idl>
|
2023-11-19 02:44:42 +03:00
|
|
|
#import <Streams/ReadableStreamDefaultReader.idl>
|
2023-04-08 22:01:49 +03:00
|
|
|
#import <Streams/ReadableStreamGenericReader.idl>
|
|
|
|
|
2023-08-27 03:55:25 +03:00
|
|
|
// https://streams.spec.whatwg.org/#readablestreambyobreader
|
2023-04-08 22:01:49 +03:00
|
|
|
[Exposed=*]
|
|
|
|
interface ReadableStreamBYOBReader {
|
2023-08-27 03:55:25 +03:00
|
|
|
constructor(ReadableStream stream);
|
2023-04-08 22:01:49 +03:00
|
|
|
|
2023-11-23 11:48:28 +03:00
|
|
|
Promise<ReadableStreamReadResult> read(ArrayBufferView view);
|
2023-11-19 02:44:42 +03:00
|
|
|
|
2023-08-27 04:29:32 +03:00
|
|
|
undefined releaseLock();
|
2023-04-08 22:01:49 +03:00
|
|
|
};
|
|
|
|
ReadableStreamBYOBReader includes ReadableStreamGenericReader;
|