FunctionNode

class FunctionNode<I, O>(val name: String, block: (I) -> O) : Node<I, O> (source)

A node that wraps a function.

Constructors

Link copied to clipboard
constructor(name: String, block: (I) -> O)

Properties

Link copied to clipboard
open override val name: String

Unique identifier for this node within the pipeline.

Functions

Link copied to clipboard
open override fun process(input: I): O

Execute the node's processing logic.