Noop

object Noop : Source<Processor>

Convenience implementation of Source which does nothing when a Processor is provided to be attached.

Functions

Link copied to clipboard
open override fun attach(processor: Processor): Closeable

Attaches the provided processor and returns a Closeable to release the connection once required. The source does not need to guarantee that the provided processor will be connected to as soon as attached since the the source may need to pull input data asynchronously.

Link copied to clipboard
fun <P : Processor> get(): Source<P>

Provides a generic Source which does nothing.