AsyncCall not SyncResumption |
m Yosh moved page ProtoFlux:ASync Range Loop Int to ProtoFlux:Async Range Loop Int over redirect: ASync -> Async |
(No difference)
|
Revision as of 21:34, 12 December 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Missing clarification
Range Loop Int is a ProtoFlux node that allows for firing a bunch of executions like an ASync For Loop except that instead of having to go one at a time from 0->count, you can specify a Start (int) number, End (int) number, and a StepSize (int) which all determine the range of numbers that will come out of Current (int) during execution and the distance between each Current (int) outputted.
This node will do a bunch of async tasks in order in an Async context, waiting for each task to be done before moving to the next one. This is useful if you want to do a bunch of GET String requests but you need to wait for the previous one to be done before doing the next, for a specified number of times. This does not behave the same as using a Start ASync Task on every Range Loop Int iteration or even before the Range Loop Int using a Start ASync Task.
Inputs
* (IAsyncOperation)
Start Execution of the ASync Range Loop.
Start (int)
The number to start at when executing.
End (int)
The number to end at when executing.
TODO: Is this inclusive or exclusive?
StepSize (int)
How much to add to Start (int) per execution for the Current (int) output number.
Outputs
LoopStart (AsyncCall)
Fires when the loop starts, regardless of executions of the ASync Range Loop.
LoopIteration (AsyncCall)
Fires every time Current (int) increases by StepSize (int) and (has just or hasn't/hasn't)? hit the End (int) limit. Waits till the previous LoopIteration (AsyncCall) is done or after LoopStart (AsyncCall) is done before firing this one.
TODO: Is this inclusive or exclusive?
LoopEnd (Continuation)
Fires once the loop has finished.
Current (int)
The current number between Start (int) and End (int). has a value during every LoopIteration (AsyncCall).
Examples
-
ASync Range Loop Int being used to iterate over every other character in a string using Get Character and then calling a read cloud variable using the character.