jvmTest.SimpleConnection.kt Maven / Gradle / Ivy
package kt.mobius
interface SimpleConnection : Connection {
companion object {
inline operator fun invoke(crossinline consumer: (F) -> Unit): SimpleConnection {
return object : SimpleConnection {
override fun accept(value: F) {
consumer(value)
}
}
}
}
override fun dispose() {
// ignored.
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy