Timer.Simple
From Nomad DB
Creates a simple unnamed Timer which is executed once after the time has elapsed.
Syntax
timer.Simple(duration, callback[, ...])
- duration: number (in seconds)
- callback: function (to invoke after the timer elapsed)
- [...]: varargs (any amount of parameters that should be passed to the callback)
- function call: callback([...])
- Returns: Timer instance (can be used with timer.Remove)
Example
timer.Simple(1, function()
print("1 Second elapsed")
end)