thenSplit
fun <InputT, MainOutputT, SideOutputT, ChannelT : ChannelType<ChannelT>> NodeBuilder<InputT, ChannelT>.thenSplit(label: String, splitter: (InputT) -> Pair<MainOutputT, SideOutputT>): Pair<RegularNodeBuilder<SplitNode<InputT, MainOutputT, SideOutputT, ChannelT>, MainOutputT, ChannelT>, RegularNodeBuilder<SplitNode<InputT, MainOutputT, SideOutputT, ChannelT>, SideOutputT, ChannelType.Push>>
Attaches a split node into the builder chain. Then the different pathways for the splitter node outputs are defined. Split node simulates a location where one item splits into two items, such as
a booth for trucks to return a token when leaving an access controlled part of a port
a crane that separates the container being carried by the port vehicle, and stores the container into storage
Parameters
splitter
Function of how to split each InputT item.