close

open override fun close()(source)

Closes the engine: aborts a running transcription, rejects queued and future calls with IllegalStateException, ends running transcribeStream collections with a terminal TranscriptionEvent.Error (InferenceCancelledException), frees their native states and then the native context on the engine's thread, and stops that thread. Idempotent and safe from any thread.