* If the reader is active, behaves the same as ReadableStream.cancel | stream.cancel(reason).
(reason = void 0)
| 10807 | * If the reader is active, behaves the same as {@link ReadableStream.cancel | stream.cancel(reason)}. |
| 10808 | */ |
| 10809 | cancel(reason = void 0) { |
| 10810 | if (!IsReadableStreamDefaultReader(this)) { |
| 10811 | return promiseRejectedWith(defaultReaderBrandCheckException("cancel")); |
| 10812 | } |
| 10813 | if (this._ownerReadableStream === void 0) { |
| 10814 | return promiseRejectedWith(readerLockException("cancel")); |
| 10815 | } |
| 10816 | return ReadableStreamReaderGenericCancel(this, reason); |
| 10817 | } |
| 10818 | /** |
| 10819 | * Returns a promise that allows access to the next chunk from the stream's internal queue, if available. |
| 10820 | * |
nothing calls this directly
no test coverage detected