Coroutine.wrap
From ComputerCraft Wiki
Revision as of 18:50, 30 November 2012 by AfterLifeLochie (Talk | contribs) (Function -> Function (type))
| Creates and Returns a Coroutine in the form of a function. | |
| Syntax | coroutine.wrap(function) |
| Returns | function coroutine |
| Part of | ComputerCraft |
| API | Coroutine |
Examples
| Runs a created coroutine. | |
| Code |
local func = coroutine.wrap(print) |
| Output | Hello World! |