commonMain.dev.inmo.micro_utils.fsm.common.StatesHandler.kt Maven / Gradle / Ivy
package dev.inmo.micro_utils.fsm.common
/**
* Default realization of states handler
*/
fun interface StatesHandler {
/**
* Main handling of [state]. In case when this [state] leads to another [State] and [handleState] returns not null
* [State] it is assumed that chain is not completed.
*/
suspend fun StatesMachine.handleState(state: I): O?
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy