Appearance
ReactivePublisher
Inherits: Class
Methods
Cancel
lua
function ReactivePublisher:Cancel()Cancels and releases the publisher.
Disable
lua
function ReactivePublisher:Disable()Marks the publisher as disabled so it'll ignore any new values.
EnableAndReset
lua
function ReactivePublisher:EnableAndReset()Marks the publisher as enabled and reset it to its initial state (sends the initial value again).
StoreIn
lua
function ReactivePublisher:StoreIn(tbl)Stores the publisher within the provided table and marks it as stored and active.
Parameters:
| Name | Type | Description |
|---|---|---|
tbl | ReactivePublisher[] | The table to add the publisher to |
Stored
lua
function ReactivePublisher:Stored()
-> selfMarks the publisher as stored and active.
Returns:
| Type | Description |
|---|---|
self |
Functions
Get
lua
function ReactivePublisher.Get(codeGen, subject)
-> ReactivePublisherGets a publisher object.
Parameters:
| Name | Type | Description |
|---|---|---|
codeGen | ReactivePublisherCodeGen | The code gen object |
subject | ReactiveSubject | The subject |
Returns:
| Type | Description |
|---|---|
ReactivePublisher |