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:
parent
26a5471302
commit
ed761bf83f
2 changed files with 0 additions and 15 deletions
|
@ -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}
|
||||
|
|
6
ext/web/lib.deno_web.d.ts
vendored
6
ext/web/lib.deno_web.d.ts
vendored
|
@ -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>(
|
||||
|
|
Loading…
Add table
Reference in a new issue