handle
open fun <A> handle(errorHandler: ErrorHandler<T> = ::errorHandler, execute: suspend (T, A) -> T): SimpleHandler<A>
Content copied to clipboard
Factory method to create a SimpleHandler mapping the actual value of the Store and a given Action to a new value.
Parameters
execute
lambda that is executed whenever a new action-value appears on the connected event-Flow.
open fun handle(errorHandler: ErrorHandler<T> = ::errorHandler, execute: suspend (T) -> T): SimpleHandler<Unit>
Content copied to clipboard
Factory method to create a SimpleHandler that does not take an Action
Parameters
errorHandler
handles error during update
execute
lambda that is execute for each event on the connected Flow