FlowEffectEvent

Types

Link copied to clipboard
data class Cancelled(val effectId: EffectId, val ownerId: OwnerId? = null, val triggerAction: Action) : FlowEffectEvent<Nothing>
Link copied to clipboard
data class Completed(val effectId: EffectId, val ownerId: OwnerId? = null, val triggerAction: Action) : FlowEffectEvent<Nothing>
Link copied to clipboard
data class Emitted<out R>(val effectId: EffectId, val ownerId: OwnerId? = null, val triggerAction: Action, val value: R) : FlowEffectEvent<R>
Link copied to clipboard
data class Failed(val effectId: EffectId, val ownerId: OwnerId? = null, val triggerAction: Action, val cause: Throwable?) : FlowEffectEvent<Nothing>
Link copied to clipboard
data class Started(val effectId: EffectId, val ownerId: OwnerId? = null, val triggerAction: Action) : FlowEffectEvent<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 <R> FlowEffectEvent<R>.emittedValueOrElse(orElse: () -> R): R
fun <R, T> FlowEffectEvent<R>.emittedValueOrElse(valueTransformer: (R) -> T, orElse: () -> T): T