Skip to content

streamWithTimeout

streamWithTimeout(stream, timeoutMs, onTimeout): IRChatStream

Defined in: streaming.ts:384

Add timeout to stream.

IRChatStream

Original stream

number

Timeout in milliseconds

() => IRStreamChunk

Callback when timeout occurs

IRChatStream

Stream with timeout