Difference between revisions of "Coroutine.create"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
Creates a new coroutine, with body f. f must be a Lua function. Returns this new coroutine, an object with type "thread".
+
<translate>Creates a new coroutine, with body f. f must be a Lua function. Returns this new coroutine, an object with type "thread".</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(coroutine) = coroutine.create(f)
 
(coroutine) = coroutine.create(f)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''f''': (function) lua function <br/>
+
'''f''': (function) <translate>lua function</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (coroutine) created coroutine<br/>
+
'''Returns''' (coroutine) <translate>created coroutine</translate><br/>

Revision as of 13:32, 23 August 2018

Available since: Gideros 2011.6

Description

Creates a new coroutine, with body f. f must be a Lua function. Returns this new coroutine, an object with type "thread".

(coroutine) = coroutine.create(f)

Parameters

f: (function) lua function

Return values

Returns (coroutine) created coroutine