Skip to content

TextStreamHelper

Defined in: src/util/types.ts:248

Helper interface for text streaming operations. Provides methods to write text with or without newlines.

onAbort(callback): void

Defined in: src/util/types.ts:268

Register a callback to be executed when the stream is aborted.

() => void

Callback function

void


sleep(ms): Promise<void>

Defined in: src/util/types.ts:263

Sleep for a specified duration.

number

Milliseconds to sleep

Promise<void>


write(text): Promise<void>

Defined in: src/util/types.ts:253

Write text to the stream without a newline.

string

Text to write

Promise<void>


writeln(text): Promise<void>

Defined in: src/util/types.ts:258

Write text to the stream with a newline.

string

Text to write

Promise<void>