readableStream.pipeTo(destination[, options])
destination<WritableStream> 一个 <WritableStream>,这个ReadableStream的数据将被写入其中。options<Object>preventAbort<boolean> 当值为true时,此ReadableStream中的错误不会导致destination被中止。preventCancel<boolean> 当为true时,destination中的错误不会导致此ReadableStream被取消。preventClose<boolean> 当为true时,关闭此ReadableStream不会导致destination被关闭。signal<AbortSignal> 允许使用 <AbortController> 取消数据传输。
- 返回:一个以
undefined解决的 Promise
在管道操作进行时,会导致 readableStream.locked 为 true。
【Causes the readableStream.locked to be true while the pipe operation
is active.】