interruptDelayAndContinue

abstract suspend fun interruptDelayAndContinue(process: KSLProcess, delayName: String, interruptTime: Double, interruptPriority: Int)
open suspend fun interruptDelayAndContinue(process: KSLProcess, delayName: String, interruptTime: GetValueIfc, interruptPriority: Int)

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 for the specified interrupt time. After the interruption time has elapsed, the process experiencing the original delay continues with the post interruption time being equal to the time remaining on the original delay at the time of 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

interruptTime

the length of time associated with the interrupt

interruptPriority

the priority associated with the interrupt event