Skip to main content

PromiseMaidUtils

Helper functions for maids and promises

Functions

whilePromise

PromiseMaidUtils.whilePromise(
promisePromise,
callbackfunction
) → ()

Calls the callback with a maid for the lifetime of the promise.

Show raw api
{
    "functions": [
        {
            "name": "whilePromise",
            "desc": "Calls the callback with a maid for the lifetime of the promise.",
            "params": [
                {
                    "name": "promise",
                    "desc": "",
                    "lua_type": "Promise"
                },
                {
                    "name": "callback",
                    "desc": "",
                    "lua_type": "function"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 20,
                "path": "src/promisemaid/src/Shared/PromiseMaidUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PromiseMaidUtils",
    "desc": "Helper functions for maids and promises",
    "source": {
        "line": 6,
        "path": "src/promisemaid/src/Shared/PromiseMaidUtils.lua"
    }
}