Difference between revisions of "Thread.new"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' 2018.10<br/> '''<translate>Class</translate>:''' Thread<br/> === <translat...")
 
Line 13: Line 13:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''thread: ''' ''(Thread)''  <translate>new Thread object</translate><br/>
 
'''thread: ''' ''(Thread)''  <translate>new Thread object</translate><br/>
 +
 +
{{Thread}}

Revision as of 22:57, 11 February 2020


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