diff --git a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesHandler.kt b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesHandler.kt index 0dd89843a27..a64f5133d96 100644 --- a/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesHandler.kt +++ b/fsm/common/src/commonMain/kotlin/dev/inmo/micro_utils/fsm/common/StatesHandler.kt @@ -5,7 +5,8 @@ package dev.inmo.micro_utils.fsm.common */ 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): State? }