Thread:setFunction
From GiderosMobile
Available since: 2018.10
Class: Thread
Description
Sets a Lua function that thread will execute. <syntaxhighlight lang="lua"> ok = thread:setFunction(func) </source>
Will return false if the function cannot be set because the thread is currently running or suspended.
Parameters
func: (function) Lua code to run in thread
Return values
ok: (boolean) success