retryIntentsDecorator

inline fun <S : MVIState, I : MVIIntent, A : MVIAction> retryIntentsDecorator(strategy: RetryStrategy, name: String? = null, crossinline selector: (intent: I, e: Exception) -> Boolean = { _, _ -> true }): PluginDecorator<S, I, A>

Install a new decorator that retries invoking StorePlugin.onIntent using the specified strategy and selector for choosing whether to retry a given intent.

  • See RetryStrategy docs for available retry options.

  • This decorator does not handle undelivered actions, for that use StorePlugin.onUndeliveredAction

  • If this is applied over a Store, then it will retry all plugins' intent reduction efforts.

See also