Creates a loop that terminates once a certain condition is met.
Creates a loop that terminates once a certain condition is met.
State
operation to perform at each iteration
stopping condition
frequency cap for this loop
cleanup procedure to run when the loop is finished
Abstraction that allows to run loops at a certain frequency in a platforrm agnostic way.
This is useful for interop with backends that do nor provide
Thread.sleep
or that require that an event loop keeps being consumed.