dumpStackThen

fun dumpStackThen(    runtime: AvailRuntime,     textInterface: TextInterface,     availContinuation: A_Continuation,     action: (List<String>) -> Unit)

Create a list of descriptions of the stack frames (A_Continuations) of the specified continuation. Invoke the specified Kotlin function with the resultant list. This list begins with the newest frame and ends with the base frame.

Parameters

runtime

The Avail runtime to use for stringification.

textInterface

The text interface for fibers started due to stringification. This need not be the default AvailRuntime.textInterface.

availContinuation

The A_Continuation to dump.

action

What to do with the list of Strings.