addTransformer

inline fun <G : F> addTransformer(noinline effectHandler: (input: Flow<G>) -> Flow<E>)

Provides the Flow of Effects and returns a Flow of Events. This method is unaffected by ExecutionPolicys, allowing you to provide custom behavior directly to the flow.

Parameters

effectHandler

A lambda that accepts a Flow of effects and returns a flow of Events.