coroutine.create

From ComputerCraft Wiki
Revision as of 12:12, 4 December 2012 by 184.171.168.202 (Talk) (THIS IS NOT JAVA)

Jump to: navigation, search


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

Examples

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