clearInterval

Declaration

void clearInterval(int handle);

Description

Cancel the interval call function previously set by the setInterval. The parameter handle is the handle returned by setInterval.

local iInterval = setInterval(function()
    print("log ervery seconds.");
end,1000);

-- cancle the interval call
clearInterval(iInterval);