Skip to content

TextStreamHelper

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

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

onAbort(callback): void

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

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:265

Sleep for a specified duration.

number

Milliseconds to sleep

Promise<void>


write(text): Promise<void>

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

Write text to the stream without a newline.

string

Text to write

Promise<void>


writeln(text): Promise<void>

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

Write text to the stream with a newline.

string

Text to write

Promise<void>