Module molly.thread_coroutine

Module with implementation of threads based on coroutines.

References

  • "Programming in Lua, Coroutines", Roberto Ierusalimschy, http://www.lua.org/pil/9.html
  • "Coroutines in Lua" - Ana LĀ“ucia de Moura, Noemi Rodriguez, Roberto Ierusalimschy, https://www.lua.org/doc/jucs04.pdf

The module provides a thread object (new, create, cancel, join and yield methods) and a scheduler that runs registered threads. Thread synchronization primitives are exported by molly.thread.

See also:

Local Functions

yield ()


Local Functions

yield ()
generated by LDoc 1.5.0 Last updated 2026-10-22 11:22:25