MutableSignal

interface MutableSignal<T> : Signal<T> (source)

An extension of Signal that allows for programmatic mutation of the underlying value.

Since

0.1.0

Parameters

T

the type of the value

See also

Properties

Link copied to clipboard
abstract override var value: T

The current value of the signal.

Functions

Link copied to clipboard
abstract operator fun <R> invoke(mapper: (T) -> R): Signal<R>

Maps this signal with the given mapping function.

Link copied to clipboard
abstract fun subscribe(subscriber: (T) -> Unit): Subscription

Creates a new subscription, emitting values by calling the subscriber when updates are received.