klyn.genai.tts.SpeechStream.cancel
method
public cancel() as Void
Description

Requests cooperative cancellation and discards unread blocks. Safe from another thread while the consumer keeps the stream open.

Example

stream.cancel()