Lore archive · Warcraft Wiki, 2023 dump
API coroutine.create
Last wiki revision 2022-07-21
Creates a coroutine capable of yielding. co = coroutine.create(workload) resumeFunc = coroutine.wrap(workload)
- workload: - A function that may yield with.
- co: - A complete coroutine usable with the coroutine library.
- resumeFunc: - A single function to begin/resume the workload.
- The workload is suspended until begun or resumed by or.
Yield part-way during a workload.
- Roberto lerusalimschy 2003, Programming in Lua, Chapter 9.1: Coroutine Basics.
Source
https://warcraft.wiki.gg/wiki/API_coroutine.create · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.