I am building a general purpose rule engine where I define various conditions (like if a sensor value is above a certain threshold) and if the conditions are met, there are a set of instructions to perform. Maybe turn on a lamp, wait, turn it off and also do something else.
I expect the code to do something after the delay (not just sending data) this is why I wanted to keep the processing within the loop.
I know my other option would be to send the data out on a second output and loop in back to the input through a delay node. And in that case I would also need to pass the entire context so the code can pick up the processing after the delay. Not impossible to do, but I was hoping to keep it simple and be able to delay the processing inside the function node.