Node

open class Node<out A> : Flow<A> (source)

A node is the basic abstraction used in yafrl.

It represents a node in the state graph of reactive values in the application, and can represent either an event, or a reactive behavior.

Properties

Link copied to clipboard
val id: NodeID
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun collect(collector: FlowCollector<A>)
Link copied to clipboard
fun collectSync(collector: (A) -> Unit)
Link copied to clipboard
fun <A> Node<A>.current(): A

Utility to get the current value of a node.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun unregisterSync(collector: (A) -> Unit)