Difference between revisions of "Thread.new"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' 2018.10<br/> | |
− | ''' | + | '''Class:''' [[Thread]]<br/> |
− | ''' | ||
− | === | + | === 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() | |
+ | </syntaxhighlight> | ||
− | === | + | === Return values === |
− | + | '''thread: ''' ''(Thread)'' new Thread object<br/> | |
− | |||
− | '''thread: ''' ''(Thread)'' | ||
{{Thread}} | {{Thread}} |
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