add Consumer
inline fun <G : F> addConsumer(executionPolicy: ExecutionPolicy, crossinline effectHandler: suspend (effect: G) -> Unit)
Receives one Effect and does not return any Events.
Parameters
execution Policy
The policy defining coroutines behavior.
effect Handler
A suspending lambda that accepts the Effect and no Events.
See also
to return one Event.
to emit more than one Event.
Receives one Effect and does not return any Events using the defaultExecutionPolicy.
Parameters
effect Handler
A suspending lambda that accepts the Effect and no Events.
See also
to return one Event.
to emit more than one Event.