ProtoFlux:Sequence: Difference between revisions

From Resonite Wiki
make consistent with async
no synchronous context
 
Line 12: Line 12:
|}}
|}}


The '''Sequence''' node performs each of the provided impulses in order, waiting for the [[synchronous context]] of each impulse to finish before executing the next one.
The '''Sequence''' node performs each of the provided [[impulses]] in order, waiting for the chain of each impulse to finish before executing the next one.


This can be useful for organizational purposes or to avoid code duplication if something needs to be performed after a bunch of branching paths.
This can be useful for organizational purposes or to avoid code duplication if something needs to be performed after a bunch of branching paths.
Line 26: Line 26:
=== Calls (List of [[Impulses|Call]]) ===
=== Calls (List of [[Impulses|Call]]) ===


The list of impulses to fire in order. The impulses are run in a synchronous context, and after the context of the impulse finishes, the next impulse is fired.
The list of impulses to fire in order. This node will start at the first impulse, and after the context of the impulse finishes, the next impulse is fired. Repeats until the last impulse finishes.


== Examples ==
== Examples ==

Latest revision as of 21:01, 29 January 2025

Sequence
*
Calls
+
-
Flow

The Sequence node performs each of the provided impulses in order, waiting for the chain of each impulse to finish before executing the next one.

This can be useful for organizational purposes or to avoid code duplication if something needs to be performed after a bunch of branching paths.

Inputs

* (Call)

Start execution of the node.

Outputs

Calls (List of Call)

The list of impulses to fire in order. This node will start at the first impulse, and after the context of the impulse finishes, the next impulse is fired. Repeats until the last impulse finishes.

Examples

See Also