Classes
ReadableStreamDefaultReader
Type Parameters
Type Parameter | Default type |
---|---|
R | any |
Implements
Constructors
new ReadableStreamDefaultReader()
new ReadableStreamDefaultReader<R
>(): ReadableStreamDefaultReader
<R
>
Returns
ReadableStreamDefaultReader
<R
>
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(): Promise
<ReadableStreamReadResult
<R
>>
Returns
Promise
<ReadableStreamReadResult
<R
>>
Implementation of
globalThis.ReadableStreamDefaultReader.read
releaseLock()
releaseLock(): void
Returns
void
Implementation of
globalThis.ReadableStreamDefaultReader.releaseLock