All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.aartikov.sesame.loading.simple.internal.EventEffectHandler.kt Maven / Gradle / Ivy

package me.aartikov.sesame.loading.simple.internal

import me.aartikov.sesame.loading.simple.Loading
import me.aartikov.sesame.loop.EffectHandler

internal class EventEffectHandler(private val emitEvent: (Loading.Event) -> Unit) :
    EffectHandler, Action> {

    override suspend fun handleEffect(effect: Effect, actionConsumer: (Action) -> Unit) {
        if (effect is Effect.EmitEvent) {
            emitEvent(effect.event)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy