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

commonMain.it.unibo.tuprolog.solve.channel.impl.AbstractInputChannel.kt Maven / Gradle / Ivy

package it.unibo.tuprolog.solve.channel.impl

import it.unibo.tuprolog.solve.channel.InputChannel

abstract class AbstractInputChannel : AbstractChannel(), InputChannel {

    override val available: Boolean
        get() = true

    protected abstract fun readActually(): T

    final override fun read(): T {
        val read = readActually()
        notify(read)
        return read
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy