Life Cycle
Functions
Link copied to clipboard
Transition the state to to without performing a current state check.
Link copied to clipboard
fun requireState(errorMessage: (S) -> String = { "Predicate failed on state $it" }, predicate: (S) -> Boolean)
Assert that the lifecycle in the requiredState. Optionally runs block, for the duration of which the lifecycle is guaranteed to stay in requiredState.
Assert something about the current state atomically.
Link copied to clipboard