interruptDelayWithProcess

abstract suspend fun interruptDelayWithProcess(process: KSLProcess, delayName: String, interruptingProcess: KSLProcess, interruptPriority: Int = PRIORITY, postInterruptDelayTime: Double)
open suspend fun interruptDelayWithProcess(process: KSLProcess, delayName: String, interruptingProcess: KSLProcess, interruptPriority: Int = PRIORITY, postInterruptDelayTime: GetValueIfc)

This method allows a process to interrupt another process while that process is experiencing a delay. If the supplied process is not currently experiencing the named delay, then nothing happens. That is, the interrupt is ignored and the method just returns at the current time without suspending. If the supplied process is experiencing the named delay, then its delay is interrupted while the interrupting process executes to completion. After the interruption process has completed, the process experiencing the original delay continues a delay for the specified post interruption delay time. Note that this functionality requires three processes 1) to have the interruptDelay() call, 2) the process being interrupted, and 3) the process that is used as the interruption.

Parameters

process

the process with the delay that may be interrupted

delayName

the name of the delay within the process that needs to be interrupted

interruptingProcess

the process that will interrupt the delay

interruptPriority

the priority associated with the interrupt event

postInterruptDelayTime

the time to be associated with the original delay, after the interruption is completed