Skip to main content

DebounceTimer

DebounceTimer

Functions

new

DebounceTimer.new(lengthnumber) → DebounceTimer

SetLength

DebounceTimer:SetLength(lengthnumber) → ()

Gets the length

Restart

DebounceTimer:Restart() → ()

Restarts the timer

IsRunning

DebounceTimer:IsRunning() → boolean

Returns whether or not the timer is running.

GetTimeRemaining

DebounceTimer:GetTimeRemaining() → number

Returns the amount of time remaining in the timer.

IsDone

DebounceTimer:IsDone() → boolean

Returns if the timer is done

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "",
            "params": [
                {
                    "name": "length",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "DebounceTimer"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 14,
                "path": "src/debounce/src/Shared/DebounceTimer.lua"
            }
        },
        {
            "name": "SetLength",
            "desc": "Gets the length",
            "params": [
                {
                    "name": "length",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 26,
                "path": "src/debounce/src/Shared/DebounceTimer.lua"
            }
        },
        {
            "name": "Restart",
            "desc": "Restarts the timer",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 34,
                "path": "src/debounce/src/Shared/DebounceTimer.lua"
            }
        },
        {
            "name": "IsRunning",
            "desc": "Returns whether or not the timer is running.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 42,
                "path": "src/debounce/src/Shared/DebounceTimer.lua"
            }
        },
        {
            "name": "GetTimeRemaining",
            "desc": "Returns the amount of time remaining in the timer.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 50,
                "path": "src/debounce/src/Shared/DebounceTimer.lua"
            }
        },
        {
            "name": "IsDone",
            "desc": "Returns if the timer is done",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 62,
                "path": "src/debounce/src/Shared/DebounceTimer.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "DebounceTimer",
    "desc": "DebounceTimer",
    "source": {
        "line": 5,
        "path": "src/debounce/src/Shared/DebounceTimer.lua"
    }
}