* Cancels the stream, signaling a loss of interest in the stream by a consumer. * * The supplied `reason` argument will be given to the underlying source's UnderlyingSource.cancel | cancel() * method, which might or might not use it.
(reason = void 0)
| 13968 | * method, which might or might not use it. |
| 13969 | */ |
| 13970 | cancel(reason = void 0) { |
| 13971 | if (!IsReadableStream(this)) { |
| 13972 | return promiseRejectedWith(streamBrandCheckException$1("cancel")); |
| 13973 | } |
| 13974 | if (IsReadableStreamLocked(this)) { |
| 13975 | return promiseRejectedWith(new TypeError("Cannot cancel a stream that already has a reader")); |
| 13976 | } |
| 13977 | return ReadableStreamCancel(this, reason); |
| 13978 | } |
| 13979 | getReader(rawOptions = void 0) { |
| 13980 | if (!IsReadableStream(this)) { |
| 13981 | throw streamBrandCheckException$1("getReader"); |
nothing calls this directly
no test coverage detected