Skip to main content

EventHandlerUtils

Utility methods to fire an event in a free thread, reusing threads

Functions

fire

EventHandlerUtils.fire(
memoryCategorystring,
callbackany,
...any
) → ()

Safely fires an event in the given memory category we're in

Show raw api
{
    "functions": [
        {
            "name": "fire",
            "desc": "Safely fires an event in the given memory category we're in",
            "params": [
                {
                    "name": "memoryCategory",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "callback",
                    "desc": "",
                    "lua_type": "any"
                },
                {
                    "name": "...",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 54,
                "path": "src/signal/src/Shared/EventHandlerUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "EventHandlerUtils",
    "desc": "Utility methods to fire an event in a free thread, reusing threads",
    "source": {
        "line": 6,
        "path": "src/signal/src/Shared/EventHandlerUtils.lua"
    }
}