onTimeout

fun onTimeout(duration: Double, block: StateAction.() -> Unit)(source)

After duration simulated time units elapse with this state active, run block. Each level (composite or leaf) has its own independent timeout; a composite-state timeout is scheduled when the composite is entered and cancelled when the composite is exited, regardless of substate transitions within.