Thread: 2.7 Update
View Single Post
02/14/17, 10:55 AM   #110
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
You don't have to worry about calling it too soon with zo_callLater.
Lua is singlethreaded and there are no interrups, which means the function you call later will always run after the current call stack finished executing.
The only problem I see compared to a real post hook is that you cannot guarantee that no other functions run in the meantime.
  Reply With Quote