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

jvmMain.pro.respawn.flowmvi.dsl.JvmDsl.kt Maven / Gradle / Ivy

Go to download

A Kotlin Multiplatform MVI library based on plugins that is simple, fast, powerful & flexible

There is a newer version: 3.0.0
Show newest version
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)