TimerMethods
self:destroy
Shared
Destroys an existing timer
Syntax
local status = self:destroy()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | status | Returns true on successful execution, or false on failure |
Examples
local self = timer:create(function(message)
engine.print(message)
end, 1000, 5, "Hello from timer")
self:destroy()