Skip to content

TextStreamHelper

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

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

onAbort(callback): void

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

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

Sleep for a specified duration.

number

Milliseconds to sleep

Promise<void>


write(text): Promise<void>

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

Write text to the stream without a newline.

string

Text to write

Promise<void>


writeln(text): Promise<void>

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

Write text to the stream with a newline.

string

Text to write

Promise<void>