commonMain.pro.respawn.flowmvi.dsl.PipelineDsl.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.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