Coroutine.create

From GiderosMobile
Revision as of 15:26, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2011.6
Class: coroutine

Description

Creates a new coroutine, with body f. f must be a Lua function. <syntaxhighlight lang="lua"> (thread) = coroutine.create(f) </source>

Parameters

f: (function) Lua function

Return values

Returns (thread) created coroutine