Emitting Handler
class EmittingHandler<A, E>(collectWithChannel: (Flow<A>, FlowCollector<E>, Job) -> Unit, flow: MutableSharedFlow<E>) : Handler<A> , Flow<E>
Content copied to clipboard
An EmittingHandler is a special Handler that constitutes a new Flow by itself. You can emit values to this Flow from your code and connect it to other Handlers on this or on other Stores. This way inter-store-communication is done in fritz2.
Parameters
collectWithChannel
defines how to handle the values of the connected Flow
Constructors
EmittingHandler
Link copied to clipboard