coroutine.create
From ComputerCraft Wiki
| Creates a new coroutine | |
| Syntax | coroutine.create(function function) |
| Returns | coroutine |
| Part of | ComputerCraft |
| API | Coroutine |
Examples
| creates a coroutine. | |
| Code |
func = coroutine.create(function() print("Hello World") end) func()
|