This page is not complete.
cancel() method of the
ReadableStreamBYOBReader interface cancels the stream, signaling a loss
of interest in the stream by a consumer. The supplied
reason parameter will
be given to the underlying source, which may or may not use it.
Note: If the reader is active, the
behaves the same as that for the associated stream
var promise = readableStreamBYOBReader.cancel(reason);
DOMStringproviding a human-readable reason for the cancellation.
Promise, which fulfills with the value given in the
- The source object is not a
ReadableStreamBYOBReader, or the stream has no owner.
The definition of 'cancel()' in that specification.
|Living Standard||Initial definition.|
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.