coroutine.create

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox