Coroutine.create

From GiderosMobile
Revision as of 21:00, 11 February 2020 by MoKaLux (talk | contribs)


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