All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dev.inmo.micro_utils.fsm.common.StatesHandler.kt Maven / Gradle / Ivy

There is a newer version: 0.23.0
Show newest version
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