RdSignal

class RdSignal<T>(val valueSerializer: ISerializer<T> = Polymorphic<T>()) : RdReactiveBase, IAsyncSignal<T>

Constructors

Link copied to clipboard
fun <T> RdSignal(valueSerializer: ISerializer<T> = Polymorphic<T>())

Types

Link copied to clipboard
object Companion : ISerializer<RdSignal<*>>

Functions

Link copied to clipboard
open override fun advise(lifetime: Lifetime, handler: (T) -> Unit)
Link copied to clipboard
open override fun adviseOn(    lifetime: Lifetime,     scheduler: IScheduler,     handler: (T) -> Unit)
Link copied to clipboard
override fun bind(    lf: Lifetime,     parent: IRdDynamic,     name: String)

Inserts the node into the object graph under the given parent and assigns the specified name to it. The node will be removed from the graph when the specified lf lifetime is terminated.

Link copied to clipboard
open override fun deepClone(): IRdBindable

Creates a clone of this IRdBindable not bound to any protocol

Link copied to clipboard
open fun findByRName(rName: RName): RdBindableBase?
Link copied to clipboard
open override fun fire(value: T)
Link copied to clipboard
inline fun <T : Any> getOrCreateExtension(name: String, noinline create: () -> T): T
fun <T : Any> getOrCreateExtension(    name: String,     clazz: KClass<T>,     create: () -> T): T
Link copied to clipboard
operator fun <T : IRdBindable?> T.getValue(thisRef: Any?, property: KProperty<*>): T
operator fun <T : List<IRdBindable?>> T.getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
open override fun identify(identities: IIdentities, id: RdId)

Assigns IDs to this node and its child nodes in the graph.

Link copied to clipboard
open override fun onWireReceived(buffer: AbstractBuffer)

Callback that wire triggers when it receives messaged

Link copied to clipboard
open override fun print(printer: PrettyPrinter)
Link copied to clipboard
fun synchronizeWith(    lifetime: Lifetime,     otherBindable: RdBindableBase,     accepts: (Any?) -> Boolean = { true })
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open override var async: Boolean = false

If set to true, local changes to this object can be performed on any thread. Otherwise, local changes can be performed only on the UI thread.

Link copied to clipboard
var bindLifetime: Lifetime? = null
Link copied to clipboard
open override val changing: Boolean
Link copied to clipboard
val containingExt: RdExtBase?
Link copied to clipboard
val isBound: Boolean
Link copied to clipboard
var isLocalChange: Boolean = false
Link copied to clipboard
override var location: RName
Link copied to clipboard
var master: Boolean
Link copied to clipboard
open override val protocol: IProtocol
Link copied to clipboard
open override var rdid: RdId
Link copied to clipboard
open override var scheduler: IScheduler
Link copied to clipboard
open lateinit override var serializationContext: SerializationCtx
Link copied to clipboard
val valueSerializer: ISerializer<T>
Link copied to clipboard
val wire: IWire
Link copied to clipboard
open lateinit override var wireScheduler: IScheduler

Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one.