addAction

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

executionPolicy

The policy defining coroutines behavior.

effectHandler

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.


inline fun <G : F> addAction(crossinline effectHandler: suspend () -> Unit)

Actions do not receive the Effect instant and do not return any Events using the defaultExecutionPolicy.

Parameters

effectHandler

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.