Lore archive · Warcraft Wiki, 2023 dump
API C FunctionContainers.CreateCallback
Last wiki revision 2022-10-29
Creates a function container that invokes a cancellable callback function. container = C_FunctionContainers.CreateCallback(func)
- func: - A Lua function to be called.
- container:FunctionContainer - A container object bound to the supplied function.
- The supplied callback must be a Lua function. The API will reject C functions and any non-function values.
The following snippet creates a function container and schedules it to be executed every second, cancelling itself after five calls.
Source
https://warcraft.wiki.gg/wiki/API_C_FunctionContainers.CreateCallback · 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.