//clika-runtime/io.clika.modelverse/GenerationHandle
GenerationHandle
[common]
interface GenerationHandle
A running generation. cancel may be called from any thread: the decode stops at its next step, the listener receives the text streamed so far, and GenerationListener.onDone arrives with FinishReason.CANCELED. Calling it after the generation ended is a no-op.
Properties
| Name | Summary |
|---|---|
| isDone | [common] abstract val isDone: Boolean True once the listener's terminal call has been made. |
Functions
| Name | Summary |
|---|---|
| cancel | [common] abstract fun cancel() |