Classes
ReadableStreamBYOBReader
Implements
Constructors
new ReadableStreamBYOBReader()
new ReadableStreamBYOBReader(stream
): ReadableStreamBYOBReader
Parameters
Parameter | Type |
---|---|
stream | ReadableStream <any > |
Returns
Properties
Property | Type | Description |
---|---|---|
closed | Promise <undefined > | MDN Reference |
Methods
cancel()
cancel(reason
?): Promise
<void
>
Parameters
Parameter | Type |
---|---|
reason ? | any |
Returns
Promise
<void
>
Implementation of
ReadableStreamGenericReader
.cancel
read()
read<T
>(view
): Promise
<ReadableStreamReadResult
<T
>>
Type Parameters
Type Parameter |
---|
T extends ArrayBufferView |
Parameters
Parameter | Type |
---|---|
view | T |
Returns
Promise
<ReadableStreamReadResult
<T
>>
Implementation of
globalThis.ReadableStreamBYOBReader.read
releaseLock()
releaseLock(): void
Returns
void
Implementation of
globalThis.ReadableStreamBYOBReader.releaseLock