Coroutine.create

From GiderosMobile

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