Difference between revisions of "Coroutine.wrap"
From ComputerCraft Wiki
MathManiac0 (Talk | contribs) (Created Page) |
m (Moved to CAT:LuaCoreFunctions) |
||
Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Revision as of 18:46, 28 November 2012
Function coroutine.wrap | |
Creates and Returns a Coroutine in the form of a function. | |
Syntax | coroutine.wrap(function) |
Returns | function coroutine |
Part of | ComputerCraft |
API | Coroutine |
Examples
Example | |
Runs a created coroutine. | |
Code |
local func = coroutine.wrap(print) |
Output | Hello World! |