Skip to main content

BindToCloseService

Allows unregisterable BindToClose callbacks. This is important because you can't unbind :BindToClose calls normally, so we need to provide another place to guarantee clean shutdowns.

Functions

RegisterPromiseOnCloseCallback

BindToCloseService:RegisterPromiseOnCloseCallback(saveCallbackfunction) → function--

Call to unregister callback

Binds the promise to call on close. Can be unregistered

Show raw api
{
    "functions": [
        {
            "name": "RegisterPromiseOnCloseCallback",
            "desc": "Binds the promise to call on close. Can be unregistered",
            "params": [
                {
                    "name": "saveCallback",
                    "desc": "",
                    "lua_type": "function"
                }
            ],
            "returns": [
                {
                    "desc": "Call to unregister callback",
                    "lua_type": "function"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 68,
                "path": "src/bindtocloseservice/src/Server/BindToCloseService.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "BindToCloseService",
    "desc": "Allows unregisterable BindToClose callbacks. This is important because you can't unbind\n:BindToClose calls normally, so we need to provide another place to guarantee clean shutdowns.",
    "source": {
        "line": 7,
        "path": "src/bindtocloseservice/src/Server/BindToCloseService.lua"
    }
}