Could there be an action, like a cross between Pause, Stop, en/disable flows, which allows to halt execution of a flow, while keeping its internal state (variables and such) indefinitely, to resume execution only after a corresponding action "resume flow(s)"? Like a pause action (or function), which allows early termination by another event.
I'm trying to get input into a flow which does a lot of initialisation work (it compiles an interpreter/compiler), making it unreasonable to repeat this initialisation for every new line of source. Also, I'd lose previous results of flow operation. I think a "closure" could be an alternative, but halting/pausing/sleeping until triggered appears to be a simpler way to achieve this kind of asynchronousity. Maybe an already pausing Pause action could be made to proceed immediately when entered through an exception from another action? I tried a flow with dual triggers, only pausing the first instance, but naturally will its state be outside of scope of second trigger. Maybe there's another possibility, which I'm unable to see. Flow can be provided but isn't exactly trivial.
Flow suspend / Flow resume
Moderator: Martin