Skip to content

function getTimerExecuteTimes (shared-side)

Available since version: 0.3.0

Return how many times the timer will execute, or nil if the timer does not exist.

A value of 0 means the timer repeats indefinitely.

Declaration

number|nil getTimerExecuteTimes(number timer_id)

Parameters

  • number timer_id: Timer ID returned by setTimer.

Returns number|nil

Execute count (0 = infinite), or nil if not found.