Tutorial by Examples

All functions to interact with coroutines are avaliable in the coroutine table. A new coroutine is created by using the coroutine.create function with a single argument: a function with the code to be executed: thread1 = coroutine.create(function() print("honk") end)...

Page 1 of 1