Difference between revisions of "Coroutine.create"
From ComputerCraft Wiki
m (Moved to CAT:LuaCoreFunctions) |
m (Function -> Function (type)) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=coroutine.create | |name=coroutine.create | ||
− | |args=[[function]] function | + | |args=[[Function (type)|function]] function |
|api=Coroutine | |api=Coroutine | ||
|returns=[[coroutine]] new coroutine | |returns=[[coroutine]] new coroutine |
Revision as of 18:50, 30 November 2012
Function coroutine.create | |
Creates a new coroutine | |
Syntax | coroutine.create(function function) |
Returns | coroutine new coroutine |
Part of | ComputerCraft |
API | Coroutine |
Examples
Example | |
creates a coroutine. | |
Code |
coroutine.create(function() print("Hello World") end) |