addValueCollector

inline fun <G : F> addValueCollector(executionPolicy: ExecutionPolicy = defaultExecutionPolicy, crossinline effectHandler: suspend FlowCollector<E>.(G) -> Unit)

Using the FlowCollector builder lambda effectHandler, receives an Effect instance and allows emitting any number of Events.

Parameters

executionPolicy

The policy defining coroutines behavior, defaults to defaultExecutionPolicy.

effectHandler

A Flow builder lambda.