replacingCaller

fun A_Continuation.replacingCaller(newCaller: A_Continuation): A_Continuation

Create a copy of the receiver if it's not already mutable, then clobber the caller slot with the passed value.

Return

The original or mutable copy of the original, modified to have the specified caller.

Parameters

newCaller

The calling continuation.