ProtoFlux:AsyncForEach
More actions
The Async ForEach node takes in a Collection and if the node should be done in reverse or not. When called, it will iterate through the list, providing the element of that list asyncronously. For dictionaries, the order of elements provided is not guaranteed, treat each iteration as independent of any other. For lists, the order begins with index 0 and ends with the last index, or in reverse if Reverse is true.
Inputs
* (AsyncCall)
Calls an impulse to loop through a collection asyncronously.
Collection (ICollection)
The collection to loop through.
Reverse (Bool)
Makes the loop go in reverse when iterating.
Outputs
LoopStart (AsyncCall)
Fires when the loop is about to start.
LoopIteration (AsyncCall)
Fires for each element in the collection.
LoopFailed (Continuation)
Fires when the loop failed.
LoopEnd (Continuation)
Fires when the loop has ended.
Element (Generic)
The element of the current iteration. If the collection being iterated through is a dictionary, this output will be a KeyValuePair matching the key and value types of the dictionary. An UnpackKeyValuePair node must be used in this case.