AsyncRdProperty

class AsyncRdProperty<T>(val valueSerializer: ISerializer<T> = Polymorphic()) : IMutableAsyncProperty<T> , IRdBindable, IPrintable, IRdWireable

Constructors

Link copied to clipboard
fun <T> AsyncRdProperty(defaultValue: T, valueSerializer: ISerializer<T> = Polymorphic())
Link copied to clipboard
fun <T> AsyncRdProperty(valueSerializer: ISerializer<T> = Polymorphic())

Types

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

Functions

Link copied to clipboard
open override fun adviseOn(    lifetime: Lifetime,     scheduler: IScheduler,     handler: (T) -> Unit)
Link copied to clipboard
open override fun bind()

Sends child objects to the wire. This method is called after the parent sends this instance to the wire.

Link copied to clipboard
open override fun deepClone(): AsyncRdProperty<T>

Creates a clone of this IRdBindable not bound to any protocol

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, dispatchHelper: IRdWireableDispatchHelper)

Callback that wire triggers when it receives messaged

Link copied to clipboard
open override fun preBind(    lifetime: 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 print(printer: PrettyPrinter)
Link copied to clipboard
open override fun set(value: T)
Link copied to clipboard
fun slave(): AsyncRdProperty<T>
Link copied to clipboard
fun withId(id: RdId): AsyncRdProperty<T>

Properties

Link copied to clipboard
var async: Boolean
Link copied to clipboard
val change: IAsyncSource2<T>
Link copied to clipboard
open override var location: RName
Link copied to clipboard
var master: Boolean
Link copied to clipboard
open override val maybe: Maybe<T>
Link copied to clipboard
var optimizeNested: Boolean
Link copied to clipboard
var parent: IRdDynamic? = null
Link copied to clipboard
open override val protocol: IProtocol?
Link copied to clipboard
open override var rdid: RdId
Link copied to clipboard
open override val serializationContext: SerializationCtx?
Link copied to clipboard
open override var value: T
Link copied to clipboard
val valueSerializer: ISerializer<T>