Difference between revisions of "Thread.new"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
local thread = Thread.new()
 
local thread = Thread.new()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===

Latest revision as of 14:33, 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.

local thread = Thread.new()

Return values

thread: (Thread) new Thread object