executeFiber

fun executeFiber(aFiber: A_Fiber, setup: Interpreter.() -> Unit)

Schedule the specified suspended fiber to execute for a while as an interpreter task. If the fiber completes normally, then call its A_Fiber.resultContinuation with its final answer. If the fiber terminates abnormally, then call its A_Fiber.failureContinuation with the terminal Throwable.

Parameters

aFiber

The A_Fiber to run.

setup

How to set up the interpreter prior to running the fiber for a while. Pass in the interpreter as the receiver.