0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00

BREAKING chore(ext/web): remove ReadableStream.getIterator (#12652)

This commit is contained in:
Leo Kettmeir 2021-11-05 22:21:25 +01:00 committed by GitHub
parent 26a5471302
commit ed761bf83f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 15 deletions

View file

@ -4211,15 +4211,6 @@
return readableStreamCancel(this, reason);
}
/**
* @deprecated TODO(@kitsonk): Remove in Deno 1.8
* @param {ReadableStreamIteratorOptions=} options
* @returns {AsyncIterableIterator<R>}
*/
getIterator(options = {}) {
return this[SymbolAsyncIterator](options);
}
/**
* @param {ReadableStreamGetReaderOptions=} options
* @returns {ReadableStreamDefaultReader<R> | ReadableStreamBYOBReader}

View file

@ -565,12 +565,6 @@ declare var ByteLengthQueuingStrategy: {
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
/**
* @deprecated This is no longer part of the Streams standard and the async
* iterable should be obtained by just using the stream as an
* async iterator.
*/
getIterator(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(options?: { mode?: undefined }): ReadableStreamDefaultReader<R>;
pipeThrough<T>(