// 使用 TransformStream 构造得到 WritableStream 对象const { writable } = new TransformStream();
// writable.lockedreadonly locked: boolean;
writer
,在 writer
调用 releaseLock()
方法前,该流均处于锁定状态。 // writable.highWaterMarkreadonly highWaterMark: number;
writable.getWriter(): WritableStreamDefaultWriter;
writable.close(): Promise<void>;
writable.abort(reason?: string): Promise<string>;
本页内容是否解决了您的问题?