StartTimeLoop

Starts an endless loop in a coroutine launched from the running event's context, firing once per period set by timeData — built with milliseconds or seconds. The first fire happens after the first delay, not immediately. The event returns as soon as the loop is launched, so the chain continues while it keeps running; the loop runs forever by design, so to be able to stop it, launch it from inside a RunCancellableEvents and cancel that id with CancelEvents. Does not consume incomingData. Dispatches onTimeLoop once per period, indefinitely — no data is passed, and neither success nor failure is reported.

Parameters

id

Unique identifier of this event. Defaults to a random id.

trigger

Trigger that fires this event, built via EventTriggers.

events

Child events chained after this one, wired to its trigger (onTimeLoop).

timeData

Period and unit between fires, built with milliseconds or seconds.