ResolvedEffect

sealed interface ResolvedEffect<out R>

Result of an effect-key lookup performed by EffectResolver.

Parameters

R

The result type of the resolved step.

Inheritors

Types

Link copied to clipboard
data class Error(val cause: Throwable) : ResolvedEffect<Nothing>

The lookup itself failed (e.g. the external store is unavailable).

Link copied to clipboard
data class Found<R>(val result: R) : ResolvedEffect<R>

The effect was found; result is the value to use as the step's output.

Link copied to clipboard

No record of the effect exists — the step has not yet been applied.