Garry's Mod Wiki

Revision Difference

thread#561739

<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.