A Thread is an object that runs a chunk of Lua code in the background. Threads are completely isolated from other threads, meaning they have their own Lua context and can't access the variables and functions of other threads. Communication between threads is limited and is accomplished by using
require to work properly, add
require 'lovr.filesystem' to the thread code.
|lovr.thread.newThread||Create a new Thread.|
|Thread:getError||Get the Thread's error message.|
|Thread:isRunning||Check if the Thread is running.|
|Thread:start||Start the Thread.|
|Thread:wait||Wait for the Thread to complete.|