eval

suspend fun eval(code: String): Any?(source)

Evaluate code in this context. Returns the last expression value.

Throws

CancellationException

if this context's underlying coroutine scope has been cancelled, e.g. by an enclosing withTimeout.