coroutine.create
From ComputerCraft Wiki
Revision as of 18:24, 22 April 2013 by Hawk777 (Talk | contribs) (Remove example that doesn’t show anything interesting on its own, improve description, and use type template)
Function coroutine.create | |
Creates a new coroutine. When the new coroutine is resumed for the first time, it will begin by invoking f. When f returns, the coroutine will become dead. | |
Syntax | coroutine.create(function f) |
Returns | coroutine the new coroutine |
Part of | ComputerCraft |
API | Coroutine |
Examples
Please see Coroutine (API) for a worked example of using all the coroutine functions.