Skip to main content

ObservableSubscriptionTable

This allows the storage of subscriptions for keys, such that something can subscribe onto a key, and events can be invoked onto keys.

Functions

Fire

ObservableSubscriptionTable:Fire(
keyTKey,
...TEmit
) → ()

Fires for the current key the given value

Observe

ObservableSubscriptionTable:Observe(
keyTKey,
retrieveInitialValuecallback--

Optional

) → Observable<TEmit>

Observes for the key

Destroy

ObservableSubscriptionTable:Destroy() → ()

Completes all subscriptions and removes them from the list.

Show raw api
{
    "functions": [
        {
            "name": "Fire",
            "desc": "Fires for the current key the given value",
            "params": [
                {
                    "name": "key",
                    "desc": "",
                    "lua_type": "TKey"
                },
                {
                    "name": "...",
                    "desc": "",
                    "lua_type": "TEmit"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 28,
                "path": "src/rx/src/Shared/ObservableSubscriptionTable.lua"
            }
        },
        {
            "name": "Observe",
            "desc": "Observes for the key",
            "params": [
                {
                    "name": "key",
                    "desc": "",
                    "lua_type": "TKey"
                },
                {
                    "name": "retrieveInitialValue",
                    "desc": "Optional",
                    "lua_type": "callback"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<TEmit>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 62,
                "path": "src/rx/src/Shared/ObservableSubscriptionTable.lua"
            }
        },
        {
            "name": "Destroy",
            "desc": "Completes all subscriptions and removes them from the list.",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 105,
                "path": "src/rx/src/Shared/ObservableSubscriptionTable.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "ObservableSubscriptionTable",
    "desc": "This allows the storage of subscriptions for keys, such that something\ncan subscribe onto a key, and events can be invoked onto keys.",
    "source": {
        "line": 6,
        "path": "src/rx/src/Shared/ObservableSubscriptionTable.lua"
    }
}