Coroutine.create

From GiderosMobile
Revision as of 22:39, 22 January 2023 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.

(thread) = coroutine.create(f)

Parameters

f: (function) Lua function

Return values

Returns (thread) created coroutine