delay

abstract suspend fun delay(delayDuration: Double, delayPriority: Int = PRIORITY, suspensionName: String? = null)

Causes the process to delay (suspend execution) for the specified amount of time.

Parameters

delayDuration

, the length of time required before the process continues executing, must not be negative and must be finite.

delayPriority

, since the delay is scheduled, a priority can be used to determine the order of events for delays that might be scheduled to complete at the same time.

suspensionName

the name of the delay. can be used to identify which delay the entity is experiencing if there are more than one delay suspension points within the process. The user is responsible for uniqueness.


open suspend fun delay(delayDuration: GetValueIfc, delayPriority: Int = PRIORITY, suspensionName: String? = null)

Parameters

delayDuration

, the length of time required before the process continues executing, must not be negative and must be finite.

delayPriority

, since the delay is scheduled, a priority can be used to determine the order of events for delays that might be scheduled to complete at the same time.

suspensionName

the name of the delay. can be used to identify which delay the entity is experiencing if there are more than one delay suspension points within the process. The user is responsible for uniqueness.