close

open override fun close()(source)

Closes the engine: aborts a running generation, rejects queued and future calls with IllegalStateException, frees the native context on the engine thread, and stops that thread. Idempotent and safe from any thread.