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

commonMain.s2.sourcing.dsl.Loader.kt Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
package s2.sourcing.dsl

import kotlinx.coroutines.flow.Flow

interface Loader {
	suspend fun load(id: ID & Any): ENTITY?
	suspend fun load(events: Flow): ENTITY?
	suspend fun loadAndEvolve(id: ID & Any, news: Flow): ENTITY?
	suspend fun evolve(events: Flow, entity: ENTITY? = null): ENTITY?
	suspend fun reloadHistory(): List
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy