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

commonMain.internal.SchemaEventsChannelBus.kt Maven / Gradle / Ivy

There is a newer version: 0.23.0
Show newest version
package io.kform.internal

import io.kform.SchemaEventsBus
import io.kform.ValueEvent

/** Implementation of the schema events bus using a channel. */
internal class SchemaEventsChannelBus(
    private val eventHandler: suspend (event: ValueEvent<*>) -> Unit
) : SchemaEventsBus {
    override suspend fun emit(event: ValueEvent<*>) = eventHandler(event)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy