jvmMain.pro.respawn.flowmvi.dsl.JvmDsl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-jvm Show documentation
Show all versions of core-jvm Show documentation
A Kotlin Multiplatform MVI library based on plugins that is simple, fast, powerful & flexible
package pro.respawn.flowmvi.dsl
import pro.respawn.flowmvi.api.ActionReceiver
import pro.respawn.flowmvi.api.IntentReceiver
import pro.respawn.flowmvi.api.MVIAction
import pro.respawn.flowmvi.api.MVIIntent
/**
* An alias for [IntentReceiver.send]
*/
context(IntentReceiver)
public fun I.send(): Unit = intent(this)
/**
* An alias for [ActionReceiver.action]
*/
context(ActionReceiver)
public suspend fun A.send(): Unit = action(this)
/**
* An alias for [IntentReceiver.emit]
*/
context(IntentReceiver)
public suspend fun I.emit(): Unit = emit(this)
/**
* An alias for [ActionReceiver.action]
*/
context(ActionReceiver)
public suspend fun A.emit(): Unit = emit(this)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy