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

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