EffectState

sealed class EffectState<out R>

Inheritors

Types

Link copied to clipboard
data class Cancelled(val effectId: EffectId, val ownerId: OwnerId?, val triggerAction: Action) : EffectState<Nothing>
Link copied to clipboard
data class Completed<R>(val effectId: EffectId, val ownerId: OwnerId?, val triggerAction: Action, val result: R) : EffectState<R>
Link copied to clipboard
data class Failed(val effectId: EffectId, val ownerId: OwnerId?, val triggerAction: Action, val cause: Throwable?) : EffectState<Nothing>
Link copied to clipboard
data class Running(val effectId: EffectId, val ownerId: OwnerId?, val triggerAction: Action) : EffectState<Nothing>

Properties

Link copied to clipboard
abstract val effectId: EffectId
Link copied to clipboard
abstract val ownerId: OwnerId?
Link copied to clipboard
abstract val triggerAction: Action

Functions

Link copied to clipboard
fun getResultIfCompletedElse(elseProducer: () -> R): R
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <U> map(f: (R) -> U): EffectState<U>
Link copied to clipboard
Link copied to clipboard
fun matchesId(effectId: EffectId): Boolean
Link copied to clipboard
fun matchesIdAndOwner(effectId: EffectId, ownerId: OwnerId): Boolean
Link copied to clipboard