abortExecution

abstract fun abortExecution(produceException: () -> ExecutionAbortException)

Aborts the entire training session with the exception supplied by produceException.

This is the optimizer-facing entry point to the session's shared one-shot abort controller. The first call throws the produced ExecutionAbortException; later calls are no-ops and do not invoke produceException. DSL stage boundaries record and rethrow the abort unchanged.