Difference between revisions of "Coroutine.create"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
+ | '''<translate>Class</translate>:''' [[Special:MyLanguage/coroutine|coroutine]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Creates a new coroutine, with body f. f must be a Lua function. Returns this new coroutine, an object with type "thread".</translate> | <translate>Creates a new coroutine, with body f. f must be a Lua function. Returns this new coroutine, an object with type "thread".</translate> |
Revision as of 09:27, 24 August 2018
Available since: Gideros 2011.6
Class: coroutine
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