handleAndEmit
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.
Parameters
execute
lambda that is executed for each action-value on the connected Flow. You can emit values from this lambda.
factory method to create an EmittingHandler that does not take an action in it's execute-lambda.
Parameters
execute
lambda that is executed for each event on the connected Flow. You can emit values from this lambda.