Difference between revisions of "Coroutine (API)"

From ComputerCraft Wiki
Jump to: navigation, search
(Add link to Lua docs)
(Cite the infinite threads bug)
Line 1: Line 1:
Coroutine is a default Lua 5.1 API defined [http://www.lua.org/manual/5.1/manual.html#5.2 here]. Please list any non-working functions here.
+
Coroutine is a default Lua 5.1 API defined [http://www.lua.org/manual/5.1/manual.html#5.2 here]. As of ComputerCraft 1.3, this API suffers from the problem of potentially spawning Java threads that live forever; therefore, use of coroutines should be minimized[http://www.computercraft.info/forums2/index.php?/topic/340-13-infinite-threads/]. Please list any non-working functions here.
  
 
List of non-working functions:
 
List of non-working functions:
  
 
[[Category:APIs]]
 
[[Category:APIs]]

Revision as of 23:23, 11 March 2012

Coroutine is a default Lua 5.1 API defined here. As of ComputerCraft 1.3, this API suffers from the problem of potentially spawning Java threads that live forever; therefore, use of coroutines should be minimized[1]. Please list any non-working functions here.

List of non-working functions: