commonMain.net.humans.kmm.mvi.EffectHandler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mvi-core Show documentation
Show all versions of mvi-core Show documentation
Simple and concise implementation of Redux/MVI approach by Humans.
The newest version!
package net.humans.kmm.mvi
/**
* MVI Effect Handler
*/
@Suppress("MatchingDeclarationName")
fun interface EffectHandler {
fun handle(eff: Eff)
}
fun EffectHandler.handle(effects: List) {
effects.forEach { effect ->
handle(effect)
}
}