Store
Functions
Link copied to clipboard
Default error handler printing the error to console.
Link copied to clipboard
Factory method to create a SimpleHandler that does not take an Action
Factory method to create a SimpleHandler mapping the actual value of the Store and a given Action to a new value.
Link copied to clipboard
open fun <E> handleAndEmit(execute: suspend FlowCollector<E>.(D) -> D): EmittingHandler<Unit, E>
Content copied to clipboard
factory method to create an EmittingHandler that does not take an action in it's execute-lambda.
open fun <A, E> handleAndEmit(execute: suspend FlowCollector<E>.(D, A) -> D): EmittingHandler<A, E>
Content copied to clipboard
Factory method to create a EmittingHandler taking an action-value and the current store value to derive the new value. An EmittingHandler is a Flow by itself and can therefore be connected to other SimpleHandlers even in other Stores.