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

commonMain.pro.respawn.flowmvi.dsl.PipelineDsl.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.DelicateStoreApi
import pro.respawn.flowmvi.api.MVIAction
import pro.respawn.flowmvi.api.MVIIntent
import pro.respawn.flowmvi.api.MVIState
import pro.respawn.flowmvi.api.PipelineContext
import kotlin.coroutines.coroutineContext

/**
 * Obtain the pipeline context of the current coroutine, if present, and cast it to types [S], [I], and [A]
 */
@Suppress("UNCHECKED_CAST")
@DelicateStoreApi
public suspend inline fun  pipelineContext(): PipelineContext? =
    coroutineContext[PipelineContext] as? PipelineContext




© 2015 - 2025 Weber Informatics LLC | Privacy Policy