Difference between revisions of "Thread:execute"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Starts/executes the thread if a function has been set with ''setFunction'' and the thread is not currently running.
 
Starts/executes the thread if a function has been set with ''setFunction'' and the thread is not currently running.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
local ok = thread:execute(vararg)
 
local ok = thread:execute(vararg)
 
</source>
 
</source>

Revision as of 14:31, 13 July 2023

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. <syntaxhighlight lang="lua"> local ok = thread:execute(vararg) </source>

Parameters

vararg: (...) arguments for our thread function to process

Return values

ok: (boolean) success or failure