Timeline
class Timeline(val scope: CoroutineScope, timeTravelEnabled: Boolean, debugLogging: Boolean, eventLogger: EventLogger, val graph: Graph, initTimeTravel: (Timeline) -> TimeTravelDebugger, lazy: Boolean, initClock: (Signal<Boolean>) -> Event<Duration>) : SynchronizedObject, EventLogger(source)
Simple implementation of a push-pull FRP system using a graph of nodes.
Changes are propagated by marking child nodes as dirty when a parent value changes.
Dirty values are recomputed lazily upon request.
Constructors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
fun <A, B> createFoldNode(initialValue: A, eventNode: Node<EventState<B>>, reducer: SampleScope.(A, B) -> A): Node<A>
Creates a node whose value updates by the action specified by the reducer.
Link copied to clipboard
Link copied to clipboard
Send an event to the log.
Link copied to clipboard
Link copied to clipboard
Return the list of all currently logged events in-order.
Link copied to clipboard