Completed

data class Completed<R>(val effectId: EffectId, val ownerId: OwnerId?, val triggerAction: Action, val result: R) : EffectState<R>

Constructors

Link copied to clipboard
constructor(effectId: EffectId, ownerId: OwnerId?, triggerAction: Action, result: R)

Properties

Link copied to clipboard
open override val effectId: EffectId
Link copied to clipboard
open override val ownerId: OwnerId?
Link copied to clipboard
val result: R
Link copied to clipboard
open override 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