SimpleHandler

value class SimpleHandler<A>(val process: (Flow<A>, Job) -> Unit) : Handler<A>

Defines, how to handle actions in your Store. Each Handler accepts actions of a defined type. If your handler just needs the current value of the Store and no action, use Unit.

Parameters

process

defines how to handle the values of the connected Flow

Constructors

Link copied to clipboard
fun <A> SimpleHandler(process: (Flow<A>, Job) -> Unit)

Properties

Link copied to clipboard
open override val process: (Flow<A>, Job) -> Unit