Is it ok to cancel a timer like this? (i.e. from a memory managmeent point of view)
local t = timer.performWithDelay(200, function(event) local x = 123 -- do stuff timer.cancel(t) -- \<== IS THIS OK HERE? -- Do I need either of these lines? t:removeSelf() t = nil end )
Also do I need:
- a “removeSelf” here also?
- a “= nil” here also?
