WoWInterface - View Single Post - Registering for all events / asynchronous code execution
View Single Post
06-30-20, 10:50 AM   #10
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,991
Lua is a single-threaded scripting engine, so async threads are impossible. You can fake it though by spreading your workload using coroutines or other fancy coding. You end up passing execution around like a hot potato instead of it truly being asynchronous.

It may be possible for Blizzard to separate the render and Lua into their own threads, but that's entirely up to them.
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)

Last edited by SDPhantom : 06-30-20 at 11:11 AM.
  Reply With Quote