ExecutionPolicy

sealed interface ExecutionPolicy

Defines which behavior a DSL Block such as on<Action> should have whenever a new action or value is emitted.

Inheritors

Types

Link copied to clipboard

Cancels the previous execution. By applying this ExecutionPolicy the previous execution of the same DSL block will be canceled.

Link copied to clipboard

See example of Unordered.

Link copied to clipboard

Limits the values being passed through the handler. The initial value is passed immediately without any delay. After that any value that is received within the given duration is dropped. So the handler is called only once per duration.

Link copied to clipboard

Keeps all previous execution of the DSL block running. Whichever DSL block result is first is the first to execute also ChangeState. In other words, the order of execution is not guaranteed at all.