Skip to main content

PendingPromiseTracker

Tracks pending promises

Functions

new

PendingPromiseTracker.new() → PendingPromiseTracker<T>

Returns a new pending promise tracker

Add

PendingPromiseTracker:Add(promisePromise<T>) → ()

Adds a new promise to the tracker. If it's not pending it will not add.

GetAll

PendingPromiseTracker:GetAll() → {Promise<T>}

Gets all of the promises that are pending

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Returns a new pending promise tracker",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "PendingPromiseTracker<T>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 15,
                "path": "src/promise/src/Shared/Utility/PendingPromiseTracker.lua"
            }
        },
        {
            "name": "Add",
            "desc": "Adds a new promise to the tracker. If it's not pending it will not add.",
            "params": [
                {
                    "name": "promise",
                    "desc": "",
                    "lua_type": "Promise<T>"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 28,
                "path": "src/promise/src/Shared/Utility/PendingPromiseTracker.lua"
            }
        },
        {
            "name": "GetAll",
            "desc": "Gets all of the promises that are pending",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ Promise<T> }"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 42,
                "path": "src/promise/src/Shared/Utility/PendingPromiseTracker.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PendingPromiseTracker",
    "desc": "Tracks pending promises",
    "source": {
        "line": 5,
        "path": "src/promise/src/Shared/Utility/PendingPromiseTracker.lua"
    }
}