WoWInterface - View Single Post - Help with using expirationTime
View Single Post
05-06-20, 02:47 PM   #13
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,978
While C_Timer.After() can't be canceled, Blizzard has a Lua-implemented extension that can, C_Timer.NewTimer(). This returns a ticker object with a the method ticker:Cancel().

Note, the base C_Timer.After() still fires, but the middleman function then decides whether or not to pass it along to your callback.
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote