commonMain.pro.respawn.flowmvi.api.Recoverable.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.api
import kotlin.coroutines.CoroutineContext
/**
* An entity that can [recover] from exceptions happening during its lifecycle. Most often, a [Store]
*/
@Suppress("FUN_INTERFACE_WITH_SUSPEND_FUNCTION") // https://youtrack.jetbrains.com/issue/KTIJ-7642
@DelicateStoreApi
public fun interface Recoverable : CoroutineContext.Element {
override val key: CoroutineContext.Key<*> get() = Recoverable
/**
* Recover from an exception in the given context.
*/
public suspend fun PipelineContext.recover(e: Exception)
@DelicateStoreApi
public companion object : CoroutineContext.Key>
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy