Reads

interface Reads

A read-only view of model state passed to multi-model handlers during a dispatch. Reads reflect writes already produced by earlier handlers in the same dispatch (fold semantics), so a later handler observes prior handlers' results.

Functions

Link copied to clipboard
abstract fun <M : Any> get(modelClass: KClass<M>): M

Returns the current working instance of modelClass for this dispatch.

Link copied to clipboard
inline fun <M : Any> Reads.get(): M

Reified convenience for Reads.get.