Special class for asynchonously performing a loop.
Constructor
new(Iterations:Int, Callback:() ‑> Void, IterationsPerUpdate:Int = 100)
Creates an instance of the FlxAsyncLoop class, used to do a loop while still allowing update() to get called and the screen to refresh.
Parameters:
Iterations | How many total times should it loop |
---|---|
Callback | The function that should be called each loop |
IterationsPerUpdate | Optional: how many loops before we allow an update() - defaults to 100. |