Talk:Coroutine.running
From GMod Wiki
Delete?
Do wee need these pages? I though GMod couldn't support these due to it not being multi threaded.
same for Coroutine.wrap
--Jamie Sharpe 02:21, 29 September 2009 (UTC)
- It's still possible to use it, as it's accessible in Gmod. --Unrealomega 09:10, 29 September 2009 (UTC)
- As seen in the lua reference manual, "Lua supports coroutines, also called collaborative multithreading. A coroutine in Lua represents an independent thread of execution. Unlike threads in multithread systems, however, a coroutine only suspends its execution by explicitly calling a yield function. ". It also says that lua threads have nothing to do with multithreading. --Doc 18:52, 21 May 2011 (IST)