kdux.KduxGlobal.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Kdux Show documentation
Show all versions of Kdux Show documentation
Kdux is a Kotlin-based, platform-agnostic state management library that implements the Redux pattern,
providing structured concurrency with built-in coroutine support. It is designed to integrate seamlessly
with any Kotlin project, particularly excelling in Android applications using MVI architecture.
package kdux
import kdux.tools.PerformanceData
internal object KduxGlobal {
val loggers = mutableListOf<(Any) -> Unit>()
val performanceMonitors = mutableListOf<(PerformanceData<*>) -> Unit>()
fun globalLogger(logger: (Any) -> Unit) {
loggers.add(logger)
}
fun globalPerformanceMonitor(monitor: (PerformanceData<*>) -> Unit) {
performanceMonitors.add(monitor)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy