ReadableStream


目录

import { TypeScriptExample } from "~/components";

Background

A ReadableStream is returned by the readable property inside TransformStream.

Properties

Methods

let reader = readable.getReader({ mode: 'byob' });
for await (const chunk of readable) {
  console.log(chunk);
}

PipeToOptions

Static methods

const stream = ReadableStream.from(
  (async function* () {
    yield 'hello ';
    yield 'world';
  })()
);


版本号 #2
由 壳壳虫 创建于 2026-11-01 05:53:03 UTC
由 壳壳虫 更新于 2026-11-01 05:53:06 UTC