AbortController

Per-execution gate that lets exactly one ExecutionAbortException escape an experiment execution. Construct one per training session / evaluation run and share it with every AbortPolicy.

Not thread-safe — a plain Boolean flag is enough for the single-dispatcher runner loop.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun abort(produceException: () -> ExecutionAbortException)

Throws an ExecutionAbortException produced by produceException on the first call; silently returns on subsequent calls without invoking produceException.