Garry's Mod Wiki

Revision Difference

thread#562064

<cat>Dev.Lua</cat> <title>Concepts - Threads</title> Threads in Lua are returned by the <page>coroutine.create</page> function. They have no properties or member functions, and are used by the <page>coroutine.resume</page> function. Be aware that coroutines are not multi-threading in the traditional sense. Coroutines are not run in parallel. See [here](http://lua-users.org/wiki/CoroutinesTutorial) for more information on Lua coroutines. Be aware that coroutines are not multi-threading in the traditional sense. Coroutines are not run in parallel. See [here](http://lua-users.org/wiki/CoroutinesTutorial) for more information on Lua coroutines.⤶ Read the [chapter on coroutines in the Lua online manual](https://www.lua.org/pil/9.html) for some examples