Difference between revisions of "Thread.new"

From GiderosMobile
m
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Creates a new ''Thread'' object. This manages one real hardware thread which you can set Lua functions to be run inside.
 
Creates a new ''Thread'' object. This manages one real hardware thread which you can set Lua functions to be run inside.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
local thread = Thread.new()
 
local thread = Thread.new()
 
</source>
 
</source>

Revision as of 15:31, 13 July 2023

Available since: 2018.10
Class: Thread

Description

Creates a new Thread object. This manages one real hardware thread which you can set Lua functions to be run inside. <syntaxhighlight lang="lua"> local thread = Thread.new() </source>

Return values

thread: (Thread) new Thread object