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
constructor(process: (Flow<A>, Job) -> Unit)

Properties

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

Functions

Link copied to clipboard
open operator fun invoke(data: A)

Calls this handler exactly once.

Link copied to clipboard
operator fun Handler<Unit>.invoke()

Calls this handler exactly once.