coroutine.create

From ComputerCraft Wiki
Revision as of 17:16, 13 November 2012 by MathManiac0 (Talk | contribs) (Created Page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function coroutine.create
Creates a new coroutine
Syntax coroutine.create(function function)
Returns coroutine new coroutine
Part of ComputerCraft
API Coroutine

Examples

Grid paper.png  Example
creates a coroutine.
Code
coroutine.create(function() print("Hello World") end)