Vital.sandbox
Timer

self:destroy

Shared

Destroys an existing timer


Syntax

local status = self:destroy()

Parameters

TypeNameDescription

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Destroy a timer instance
local self = timer:create(function(message)
    engine.print("info", message)
end, 1000, 5, "Hello from timer")

self:destroy()

On this page