Difference between revisions of "Thread:execute"
From GiderosMobile
| Line 1: | Line 1: | ||
| __NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' 2018.10<br/> | |
| − | ''' | + | '''Class:''' [[Thread]]<br/> | 
| − | ''' | ||
| − | ===  | + | === Description === | 
| − | + | Starts/executes the thread if a function has been set with ''setFunction'' and the thread is not currently running. | |
| − | + | <source lang="lua"> | |
| − | <source lang="lua">local ok = thread:execute(vararg)</source> | + | local ok = thread:execute(vararg) | 
| + | </source> | ||
| − | ===  | + | === Parameters === | 
| − | '''vararg | + | '''vararg''': (...) arguments for our thread function to process<br/> | 
| − | ===  | + | |
| − | '''ok | + | === Return values === | 
| + | '''ok''': (boolean) success or failure<br/> | ||
| {{Thread}} | {{Thread}} | ||
Revision as of 18:42, 25 April 2021
Available since: 2018.10
Class: Thread
Description
Starts/executes the thread if a function has been set with setFunction and the thread is not currently running.
local ok = thread:execute(vararg)
Parameters
vararg: (...) arguments for our thread function to process
Return values
ok: (boolean) success or failure
