runOutermostFunction

fun runOutermostFunction(    aFiber: A_Fiber,     functionToRun: A_Function,     arguments: List<A_BasicObject>)

Schedule the specified fiber to run the given function. This function is invoked via the HookType.BASE_FRAME hook. The fiber must be in the unstarted state. This Kotlin method is an entry point for driving Avail externally.

If the function successfully runs to completion, then the fiber's "on success" continuation will be invoked with the function's result.

If the function fails for any reason, then the fiber's "on failure" continuation will be invoked with the terminal throwable.

Parameters

aFiber

The fiber to run.

functionToRun

A function to run.

arguments

The arguments for the function.