commonMain.kase.ExecutorState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kase-core Show documentation
Show all versions of kase-core Show documentation
A kotlin multiplatform library to present common UI states
@file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
package kase
import kotlinx.JsExport
/**
* An ExecutorState is a state model that passes through an [Executing] phase.
*
* Conceptually, these are things that start from a [Pending] state.
* The need to be explicitly started for them to begin Execution and
* enter into an [Executing] state. Hence the name, Executor
*/
sealed interface ExecutorState : State, CanPend, CanExecute, CanSucceed, CanFail