Difference between revisions of "Thread.new"
From GiderosMobile
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. | |
− | + | <source lang="lua"> | |
− | <source lang="lua">local thread = Thread.new()</source> | + | local thread = Thread.new() |
+ | </source> | ||
− | === | + | === Parameters === |
− | '' | + | ''none''<br/> |
− | === | + | |
− | '''thread: ''' ''(Thread)'' | + | === Return values === |
+ | '''thread: ''' ''(Thread)'' new Thread object<br/> | ||
{{Thread}} | {{Thread}} |
Revision as of 20:08, 15 April 2021
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()
Parameters
none
Return values
thread: (Thread) new Thread object