Coroutine.resume

From ComputerCraft Wiki
Revision as of 18:46, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)

Jump to: navigation, search
Grid Redstone.png  Function coroutine.resume
Runs a coroutine.
Syntax coroutine.resume(coroutine, var1, var2, ...)
Returns nil
Part of ComputerCraft
API Coroutine

Examples

Grid paper.png  Example
Creates and Runs a coroutine.
Code
local co = coroutine.create(print)
coroutine.resume(co, "Hello World!")
Output Hello World!