transition

abstract fun transition(newState: ITask.State)

Updates the current State of the Task.

Moving to a state with lower order is generally not permitted. (For example, moving from Finished to Ticking is not allowed.)

Parameters

newState

the target state to move to, handling events as needed.