execute

open override fun execute(handle: Any, code: String, out: Capture): Any

Run a compiled handle.

Return

an exec.Outcome, or an exec.IterEval when the snippet yields a cross-tick iterator

Parameters

handle

a handle from compile

code

the original source, so compile diagnostics can echo the offending line

out

the sink the snippet's println writes to; the caller owns it, so a kill, cancel or timeout can still report what was printed before the eval ended