Difference between revisions of "Thread.new"
From GiderosMobile
| m | m (Text replacement - "</source>" to "</syntaxhighlight>") | ||
| (One intermediate revision by the same user not shown) | |||
| 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. | ||
| − | < | + | <syntaxhighlight lang="lua"> | 
| local thread = Thread.new() | local thread = Thread.new() | ||
| − | </ | + | </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
