Reply To: How do we write coroutines?

FlowCanvas Forums Support How do we write coroutines? Reply To: How do we write coroutines?

#3570
Gavalakis
Keymaster

Hello again,

Thank you for your input. I believe this has more to do with the implementation of the ForEach node (and similarily for the For Loop node).

I could implement a ForEach node to act the way you describe in your first post, however there is one problem: To continue with the next element in the iteration, we have to know when the current iteration has ended and there is no apparent way to know when a “flow” has ended since a node can have multiple output ports. Therefore for this to work, it will require implementing an extra Node (like a “Return” or “Continue” node), which will we will have to use at so that the ForEach node, knows when to proceed to the next element. In your example this “Return” / “Continue” node will have to be used right after the “Log Text” node for example.

Let me know what you think.

Thank you.

Join us on Discord: https://discord.gg/97q2Rjh