commonMain.com.copperleaf.ballast.test.internal.vm.TestEventHandler.kt Maven / Gradle / Ivy
package com.copperleaf.ballast.test.internal.vm
import com.copperleaf.ballast.EventHandler
import com.copperleaf.ballast.EventHandlerScope
internal class TestEventHandler(
private val eventHandlerDelegate: EventHandler
) : EventHandler, Events, State> {
override suspend fun EventHandlerScope, Events, State>.handleEvent(
event: Events
) {
with(eventHandlerDelegate) {
TestEventHandlerScope(this@handleEvent).handleEvent(event)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy