add Function
inline fun <G : F> addFunction(executionPolicy: ExecutionPolicy, noinline effectHandler: suspend (effect: G) -> E)
Receives one Effect and returns exactly one Event.
Parameters
execution Policy
The policy defining coroutines behavior.
effect Handler
A suspending lambda that accepts the Effect and returns an Event.
See also
to return zero Events.
to emit more than one Event.
Receives one Effect and returns exactly one Event using the defaultExecutionPolicy.
Parameters
effect Handler
A suspending lambda that accepts the Effect and returns an Event.
See also
to return zero Events.
to emit more than one Event.