optionalReifierIfCanSwitchContinuations

fun optionalReifierIfCanSwitchContinuations(primitive: Primitive, result: Primitive.Result): StackReifier?

The primitive was just invoked, producing the result, which must be either SUCCESS or CONTINUATION_CHANGED. Answer null if the primitive indicated success, otherwise answer a StackReifier that will discard the JVM call stack and continue running whatever the getReifiedContinuation was when this method was called.