Skip to content

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:

NameTypeDescription
tblReactivePublisher[]The table to add the publisher to

Stored

lua
function ReactivePublisher:Stored()
  -> self

Marks the publisher as stored and active.

Returns:

TypeDescription
self

Functions

Get

lua
function ReactivePublisher.Get(codeGen, subject)
  -> ReactivePublisher

Gets a publisher object.

Parameters:

NameTypeDescription
codeGenReactivePublisherCodeGenThe code gen object
subjectReactiveSubjectThe subject

Returns:

TypeDescription
ReactivePublisher