You can do something like this with a BP function, not a node though. Might be interesting, kind of like Yield or a Generator in JS. You may be able to construct the functions for this using a mixture of events, although I’m not sure how well that would work to meet your needs - BP Events into a function before you could use it as you wish.