MilanoContextHandle

The standard context source: create it with initial values, push updates from any thread.

Constructors

Link copied to clipboard
constructor(initial: Map<String, MilanoValue>)

Properties

Link copied to clipboard
open override val current: Map<String, MilanoValue>

Functions

Link copied to clipboard
open override fun subscribe(onUpdate: (Map<String, MilanoValue>) -> Unit): () -> Unit
Link copied to clipboard
fun update(newValues: Map<String, MilanoValue>)

Merges the given values over the current ones and notifies views. May be called from any thread; validation and application happen on each view's dispatcher.