Difference between revisions of "Coroutine.create"

From GiderosMobile
Line 6: Line 6:
 
(coroutine) = coroutine.create(f)
 
(coroutine) = coroutine.create(f)
 
</source>
 
</source>
'''f''': (function) lua function ''''''<br/>
+
=== Parameters ===
 +
'''f''': (function) lua function <br/>
 +
=== Return values ===
 
'''Returns''' (coroutine) created coroutine<br/>
 
'''Returns''' (coroutine) created coroutine<br/>

Revision as of 11:40, 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