thenConnect
fun <ItemT, ChannelT : ChannelType<ChannelT>> RegularNodeBuilder<*, out ItemT, ChannelT>.thenConnect(connection: Connection<in ItemT, ChannelT>)
Ends the current NodeBuilder chain, and all objects processed by the nodes in the chain will be fed to the opposite end of the connection supplied.
The NodeBuilder does not continue past this point.
Parameters
ItemT
Type of object processed by this NodeBuilder
ChannelT
Type of channel provided by the current NodeBuilder
connection
Connection to connect the NodeBuilder's output to