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

kdux.KduxGlobal.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.0.10
Show newest version
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