You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- `opts.params` (optional) this value will be passed to the timer callback, `opts.initial_delay` (optional) the first delay to use, defaults to `delay`.
-- @return timer object, or throws an error on bad input
functiontimer.new(opts)
assert(opts.delayor-1>=0, "delay must be greater than or equal to 0")
assert((opts.delayor-1)>=0, "delay must be greater than or equal to 0")
assert(type(opts.callback) =="function", "expected callback to be a function")