MilanoContextSource

Supplies and updates context values. Milano validates each change atomically; an invalid update is rejected whole and reported. subscribe returns a cancellation, invoked by the runtime at teardown so a source never retains callbacks for views that are gone.

Inheritors

Properties

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

Functions

Link copied to clipboard
abstract fun subscribe(onUpdate: (Map<String, MilanoValue>) -> Unit): () -> Unit