The type of value held by the variable
Whether the variable has been disposed.
Whether a listener subprocess is currently active.
Whether a poll loop is currently active.
Creates a Binding for a property on this variable.
When called without arguments, binds to 'value' and preserves the
variable's type parameter T as the binding's return type.
A Binding that can be used in widget constructors
Creates a Binding for a property on this variable.
When called without arguments, binds to 'value' and preserves the
variable's type parameter T as the binding's return type.
Optionalprop: PA Binding that can be used in widget constructors
Connects a callback to a signal on this variable.
The signal name (defaults to 'notify::value')
The callback to invoke
The connection ID
Stops all polling and listening, then disposes the GObject.
Returns the current value.
Starts listening to a subprocess if a listen configuration was provided.
Starts the poll loop if a poll configuration was provided.
Stops the active listener subprocess.
Stops the active poll loop.
A reactive variable that holds a value and emits signals on change.
Variables are the primary reactive primitive in AGS. They can optionally poll a command/function at intervals or listen to a subprocess for continuous updates.
Example