gre.timer_clear_interval

gre.timer_clear_interval(
    id
)
		    

This function stops an existing timer from firing


Parameters:

            id             The lightuserdata representing the timer

Returns:

            Nothing

Example:
    

local idval = {}
function cb_func()
    print("CB FUNC HAS BEEN CALLED")
end

--Call cb_func every 5 seconds
function cb_set_interval()
    idval = gre.timer_set_interval(cb_func, 2000)
end

function cb_clear_interval()
    local data

    data = gre.timer_clear_interval(idval)
end