UpdateStateFn

typealias UpdateStateFn<T, TState> = suspend (state: TState, event: ValueEvent<T>) -> TState(source)

Function used to update the state of a stateful computation.

This function is used to update the computation's state given the previous state and the event whose path matches the path being observed.