observe
Observes all keys in the given scope, emitting a Snapshot on every change.
Return
A Flow emitting Snapshot on each change in the scope.
Parameters
scope
The storage scope name.
Observes a specific set of keys in the given scope.
Return
A Flow emitting Snapshot on each change to the observed keys.
Parameters
scope
The storage scope name.
keys
The set of Observable keys to watch.
abstract fun observe(scope: String, block: Keystone.ObservationBuilder.() -> Unit): Flow<Keystone.Snapshot>
Observes keys defined by the block DSL in the given scope.
Return
A Flow emitting Snapshot on each change to the declared keys.
Parameters
scope
The storage scope name.
block
A builder lambda on ObservationBuilder to declare observed keys.