-
Calls a function on an interval, and remembers the previous result between the update intervals. Works the same as OptimizedForInterval/DefineIntervalOptimization, but with override feature.
Custom Command Dependencies:
NoneTest Script:
local interval = 15 local override = false local GetCurrentAsk = function () return CurrentPrice().ask end local result = CC_UpdateOnInterval(GetCurrentAsk, interval, override)[1] Log(result)