add Action
inline fun <G : F> addAction(executionPolicy: ExecutionPolicy, crossinline effectHandler: suspend () -> Unit)
Actions do not receive the Effect instant and do not return any Events.
Parameters
execution Policy
The policy defining coroutines behavior.
effect Handler
A suspending lambda with no arguments or return type.
See also
to receive the Effect instance.
to receive the Effect instance and return one Event.
to emit more than one Event.
Actions do not receive the Effect instant and do not return any Events using the defaultExecutionPolicy.
Parameters
effect Handler
A suspending lambda with no arguments or return type.
See also
to receive the Effect instance.
to receive the Effect instance and return one Event.
to emit more than one Event.