Package-level declarations

Functions

Link copied to clipboard

Loop period expressed in milliseconds, for StartTimeLoop. Must be positive.

Countdown expressed in milliseconds, for StartCountdownTimer.

Link copied to clipboard

Loop period expressed in seconds, for StartTimeLoop. Must be positive.

Countdown expressed in seconds, for StartCountdownTimer.

Link copied to clipboard

Starts a countdown in a coroutine launched from the running event's context, ticking down from timerData's initial toward zero in step-sized decrements, waiting one step between ticks — built with milliseconds or seconds. The event returns as soon as the countdown is launched, so the chain continues while the timer runs in the background; it stops on its own when the countdown ends. To stop it early, launch it from inside a RunCancellableEvents and cancel that id with CancelEvents. Does not consume incomingData. Dispatches onCountdownTimerTick once per tick (carrying the remaining amount), and onTimeFinish once after the last tick — neither success nor failure is reported.

Link copied to clipboard

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.