Thread:setFunction
From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Available since: 2018.10
Class: Thread
Description
Sets Lua function that thread will execute. Will return false if the function cannot be set because the thread is
currently running or suspended.
local ok = thread:setFunction(func)
Parameters
func: (function) Lua code to run in thread.
Return values
ok: (boolean) success or failure