Skip to content

WritableStreamSink

Defined in: packages/app-report/src/sink/writable-stream-sink.ts:23

Renders through a Formatter into a Web WritableStream<string>.

Portable — the Node adapter is Writable.toWeb. Applies backpressure by awaiting the writer, so an AsyncQueueSink in front of this one is the recommended way to decouple a slow destination, rather than buffering internally here too.

TData

new WritableStreamSink<TData>(stream, options): WritableStreamSink<TData>

Defined in: packages/app-report/src/sink/writable-stream-sink.ts:30

WritableStream<string>

WritableStreamSinkOptions<TData>

WritableStreamSink<TData>

close(): Promise<void>

Defined in: packages/app-report/src/sink/writable-stream-sink.ts:61

Promise<void>

ISink.close


flush(): Promise<void>

Defined in: packages/app-report/src/sink/writable-stream-sink.ts:57

Waits for the writer to catch up with backpressure.

Promise<void>

ISink.flush


write(event, signal?): Promise<void>

Defined in: packages/app-report/src/sink/writable-stream-sink.ts:40

ReportEvent<TData>

AbortSignal

Promise<void>

ISink.write