Lore archive · Warcraft Wiki, 2023 dump
API coroutine.resume
Last wiki revision 2022-07-21
Begins or resumes a coroutine. success [, ...] = coroutine.resume(co [, ...]) success, errMsg = coroutine.resume(co [, ...])
- co: - A suspended coroutine.
- ... : Variable arguments - Return values for when resuming, or the function header if it didn't begin yet.
- success: - when the coroutine runs without error.
- ... : Variable arguments - Arguments supplied to if the coroutine yielded, or return values if it reached the end.
- errMsg: - A description of the error, or why success was.
- There is an implicit, so execution can resume even when an error occurs inside the coroutine.
- If the coroutine had previously reached its conclusion, success will be false.
Yields every 1ms and resumes on the next frame until completion.
- Roberto lerusalimschy 2003, Programming in Lua, Chapter 9.1: Coroutine Basics.
Source
https://warcraft.wiki.gg/wiki/API_coroutine.resume · 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.